From bda32db54b12120a361eb72629f7b53becc2712b Mon Sep 17 00:00:00 2001 From: Georgi Boiko <7682940+pandasauce@users.noreply.github.com> Date: Thu, 23 Mar 2023 22:55:08 +0000 Subject: [PATCH] emit the function name when Python callback fails (#72) Co-authored-by: Georgi Boiko --- src/_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_support.c b/src/_support.c index e990d72..0dca691 100644 --- a/src/_support.c +++ b/src/_support.c @@ -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);