From: Matt Corallo Date: Thu, 1 Jul 2021 21:15:07 +0000 (+0000) Subject: Specify the method which threw an exception when aborting X-Git-Tag: v0.0.98.5~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=17731f152e9d722247c54fd81111ce49ab5b7a27;p=ldk-java Specify the method which threw an exception when aborting --- 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: