Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Sep 19, 2023
1 parent dcc1e36 commit 2a4bdd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ahk/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
}
Expand Down
2 changes: 1 addition & 1 deletion ahk/templates/daemon-v2.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
}
Expand Down

0 comments on commit 2a4bdd1

Please sign in to comment.