Skip to content

Commit 17731f1

Browse files
author
Matt Corallo
committed
Specify the method which threw an exception when aborting
1 parent 79bfb86 commit 17731f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java_strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def native_c_map_trait(self, struct_name, field_vars, flattened_field_vars, fiel
857857

858858
out_c += "\tif ((*env)->ExceptionCheck(env)) {\n"
859859
out_c += "\t\t(*env)->ExceptionDescribe(env);\n"
860-
out_c += "\t\t(*env)->FatalError(env, \"A Java interface method called from rust threw an exception.\");\n"
860+
out_c += "\t\t(*env)->FatalError(env, \"A call to " + fn_line.fn_name + " in " + struct_name + " from rust threw an exception.\");\n"
861861
out_c += "\t}\n"
862862

863863
if fn_line.ret_ty_info.arg_conv is not None:

0 commit comments

Comments
 (0)