Improve error message

This commit is contained in:
Volker Berlin 2019-06-21 21:45:49 +02:00
parent 1d36fbf1b2
commit 5ea58e30f8

View File

@ -200,7 +200,7 @@ class LocaleVariableManager {
// set the more specific type // set the more specific type
} else { } else {
throw new WasmException( "Redefine local variable '" + var.name + "' type from " + var.valueType + " to " + valueType + " in slot " throw new WasmException( "Redefine local variable '" + var.name + "' type from " + var.valueType + " to " + valueType + " in slot "
+ slot, null, null, -1 ); + slot + ". Compile the Java code with debug information to correct this problem.", null, null, -1 );
} }
} }
var.valueType = valueType; var.valueType = valueType;