From cc217841cbca8d2d34dbf195ce69308c3b5475ea Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Tue, 2 Nov 2021 19:14:25 +0100 Subject: [PATCH] Add helpful hint to error message. --- src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java b/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java index bf863e3..292c3fb 100644 --- a/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java +++ b/src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java @@ -570,7 +570,7 @@ public class ModuleGenerator { strings.getStringConstantFunction(); return null; } - throw new WasmException( "Abstract or native method can not be used: " + name.signatureName, -1 ); + throw new WasmException( "Abstract or native method can not be used: " + name.signatureName +"\nIf you want to use classes with native code, you must use a library that implements these native methods, such as 'de.inetsoftware:jwebassembly-api:+'.", -1 ); } } catch( Exception ioex ) { int lineNumber = code == null ? -1 : code.getFirstLineNr();