Skip to content

Commit

Permalink
feat(objectionary#3744): add more descriptive message for 'slave' object
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Jan 15, 2025
1 parent 475e929 commit fe900ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions eo-parser/src/main/java/org/eolang/parser/EoParserErrors.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ public void syntaxError(
detailed = "Invalid meta declaration";
} else if (names[EoParser.RULE_program].equals(rule)) {
detailed = "Invalid program declaration";
} else if (names[EoParser.RULE_slave].equals(rule)) {
detailed = "Invalid objects declaration that may be used inside abstract object";
} else {
detailed = "no viable alternative at input";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
---
line: 2
message: >-
[2:4] error: 'Invalid object declaration'
[2:4] error: 'Invalid objects declaration that may be used inside abstract object'
y:^
^
input: |
Expand Down

0 comments on commit fe900ab

Please sign in to comment.