improve error message

This commit is contained in:
Volker Berlin 2019-03-02 21:52:56 +01:00
parent 3fbb679cb8
commit b9bbb1c56d

View File

@ -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;