mirror of https://github.com/amol-/dukpy.git
emit the function name when Python callback fails (#72)
Co-authored-by: Georgi Boiko <gboiko@nowsecure.com>
This commit is contained in:
parent
7756f1964b
commit
bda32db54b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue