Skip to content

Commit

Permalink
More consistent naming in action templates error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGregory084 committed Jul 4, 2023
1 parent 573908d commit c89adcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tool/src/org/antlr/v4/tool/ErrorType.java
Expand Up @@ -1238,9 +1238,9 @@ public enum ErrorType {
/**
* Compiler Error 206.
*
* <p>cannot find actions template file <em>filename</em></p>
* <p>cannot find action templates file <em>filename</em></p>
*/
CANNOT_FIND_ACTIONS_TEMPLATE_FILE_GIVEN_ON_CMDLINE(206, "cannot find action templates file <arg> given for <arg2>", ErrorSeverity.ERROR),
CANNOT_FIND_ACTION_TEMPLATES_FILE_GIVEN_ON_CMDLINE(206, "cannot find action templates file <arg> given for <arg2>", ErrorSeverity.ERROR),
/**
* Compiler Error 207.
*
Expand Down
2 changes: 1 addition & 1 deletion tool/src/org/antlr/v4/tool/GrammarTransformPipeline.java
Expand Up @@ -537,7 +537,7 @@ public Object post(Object t) {
});
} catch (IllegalArgumentException e) {
if (e.getMessage() != null && e.getMessage().startsWith("No such group file")) {
tool.errMgr.toolError(ErrorType.CANNOT_FIND_ACTIONS_TEMPLATE_FILE_GIVEN_ON_CMDLINE, e, fileName, root.g.name);
tool.errMgr.toolError(ErrorType.CANNOT_FIND_ACTION_TEMPLATES_FILE_GIVEN_ON_CMDLINE, e, fileName, root.g.name);
} else {
tool.errMgr.toolError(ErrorType.ERROR_READING_ACTION_TEMPLATES_FILE, e, fileName, e.getMessage());
}
Expand Down

0 comments on commit c89adcc

Please sign in to comment.