mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 18:44:47 +01:00
improve error message
This commit is contained in:
parent
3fbb679cb8
commit
b9bbb1c56d
@ -89,7 +89,7 @@ class LocaleVariableManager {
|
||||
if( valueType.getCode() >= 0 && var.valueType == ValueType.anyref ) {
|
||||
// set the more specific type
|
||||
} else {
|
||||
throw new WasmException( "Redefine local variable type from " + var.valueType + " to " + valueType, null, null, -1 );
|
||||
throw new WasmException( "Redefine local variable type from " + var.valueType + " to " + valueType + " in slot " + slot, null, null, -1 );
|
||||
}
|
||||
}
|
||||
var.valueType = valueType;
|
||||
|
Loading…
x
Reference in New Issue
Block a user