emit the function name when Python callback fails (#72)

Co-authored-by: Georgi Boiko <gboiko@nowsecure.com>
This commit is contained in:
Georgi Boiko 2023-03-23 22:55:08 +00:00 committed by GitHub
parent 7756f1964b
commit bda32db54b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ int call_py_function(duk_context *ctx) {
}
duk_push_error_object(ctx, DUK_ERR_EVAL_ERROR,
"Error while calling Python Function: %s", strerror);
"Error while calling Python Function (%s): %s", pyfuncname, strerror);
Py_XDECREF(error_repr);
Py_XDECREF(ptype);