mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 23:47:51 +01:00
Add function signature to error message
This commit is contained in:
parent
7a7377a7ae
commit
d960ece4a7
@ -417,7 +417,7 @@ public class ModuleGenerator {
|
|||||||
javaCodeBuilder.buildCode( code, !method.getType().endsWith( ")V" ) );
|
javaCodeBuilder.buildCode( code, !method.getType().endsWith( ")V" ) );
|
||||||
return javaCodeBuilder;
|
return javaCodeBuilder;
|
||||||
} else {
|
} else {
|
||||||
throw new WasmException( "Abstract or native method can not be used: " + new FunctionName( method ).fullName, -1 );
|
throw new WasmException( "Abstract or native method can not be used: " + new FunctionName( method ).signatureName, -1 );
|
||||||
}
|
}
|
||||||
} catch( Exception ioex ) {
|
} catch( Exception ioex ) {
|
||||||
int lineNumber = code == null ? -1 : code.getFirstLineNr();
|
int lineNumber = code == null ? -1 : code.getFirstLineNr();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user