From b9bbb1c56dfc2c6195501a7dc6df29667dbc23eb Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Sat, 2 Mar 2019 21:52:56 +0100 Subject: [PATCH] improve error message --- .../inetsoftware/jwebassembly/module/LocaleVariableManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/inetsoftware/jwebassembly/module/LocaleVariableManager.java b/src/de/inetsoftware/jwebassembly/module/LocaleVariableManager.java index 836b0f4..b9b0348 100644 --- a/src/de/inetsoftware/jwebassembly/module/LocaleVariableManager.java +++ b/src/de/inetsoftware/jwebassembly/module/LocaleVariableManager.java @@ -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;