diff --git a/ahk/_constants.py b/ahk/_constants.py index f4f385a..7a46306 100644 --- a/ahk/_constants.py +++ b/ahk/_constants.py @@ -5789,7 +5789,7 @@ {% endblock after_function %} } catch Any as e { {% block function_error_handle %} - message := Format("Error occurred in {} (line {}). The error message was: {}. Specifically: {}", e.what e.line, e.message e.extra) + message := Format("Error occurred in {} (line {}). The error message was: {}. Specifically: {}", e.what, e.line, e.message e.extra) pyresp := FormatResponse("ahk.message.ExceptionResponseMessage", message) {% endblock function_error_handle %} } diff --git a/ahk/templates/daemon-v2.ahk b/ahk/templates/daemon-v2.ahk index 629ef80..de568fd 100644 --- a/ahk/templates/daemon-v2.ahk +++ b/ahk/templates/daemon-v2.ahk @@ -2895,7 +2895,7 @@ Loop { {% endblock after_function %} } catch Any as e { {% block function_error_handle %} - message := Format("Error occurred in {} (line {}). The error message was: {}. Specifically: {}", e.what e.line, e.message e.extra) + message := Format("Error occurred in {} (line {}). The error message was: {}. Specifically: {}", e.what, e.line, e.message e.extra) pyresp := FormatResponse("ahk.message.ExceptionResponseMessage", message) {% endblock function_error_handle %} }