diff --git a/tool/src/org/antlr/v4/tool/ErrorManager.java b/tool/src/org/antlr/v4/tool/ErrorManager.java index e52bd52ee..2229ff1c4 100644 --- a/tool/src/org/antlr/v4/tool/ErrorManager.java +++ b/tool/src/org/antlr/v4/tool/ErrorManager.java @@ -131,7 +131,7 @@ public class ErrorManager { locationValid = true; } - messageFormatST.add("id", msg.errorType.ordinal()); + messageFormatST.add("id", msg.errorType.code); messageFormatST.add("text", messageST); if (locationValid) reportST.add("location", locationST);