From 17731f152e9d722247c54fd81111ce49ab5b7a27 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 1 Jul 2021 21:15:07 +0000 Subject: [PATCH] Specify the method which threw an exception when aborting --- java_strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java_strings.py b/java_strings.py index c38d23b2..f97ca9b7 100644 --- a/java_strings.py +++ b/java_strings.py @@ -857,7 +857,7 @@ import java.util.Arrays; out_c += "\tif ((*env)->ExceptionCheck(env)) {\n" out_c += "\t\t(*env)->ExceptionDescribe(env);\n" - out_c += "\t\t(*env)->FatalError(env, \"A Java interface method called from rust threw an exception.\");\n" + out_c += "\t\t(*env)->FatalError(env, \"A call to " + fn_line.fn_name + " in " + struct_name + " from rust threw an exception.\");\n" out_c += "\t}\n" if fn_line.ret_ty_info.arg_conv is not None: -- 2.30.2