Skip to content

Commit e895d71

Browse files
committed
Update Error Messages
1 parent c365e74 commit e895d71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

liquidjava-verifier/src/main/java/liquidjava/rj_language/parsing/RefinementsParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static GhostDTO getGhostDeclaration(String s) throws LJError {
3535
ParseTree rc = compile(s);
3636
GhostDTO g = GhostVisitor.getGhostDecl(rc);
3737
if (g == null)
38-
throw new SyntaxError("Invalid ghost declaration, e.g. @Ghost(\"int size\")", s);
38+
throw new SyntaxError("Invalid ghost declaration, expected e.g. @Ghost(\"int size\")", s);
3939
return g;
4040
}
4141

@@ -56,7 +56,7 @@ public static AliasDTO getAliasDeclaration(String s) throws LJError {
5656
AliasVisitor av = new AliasVisitor(input);
5757
AliasDTO alias = av.getAlias(rc);
5858
if (alias == null)
59-
throw new SyntaxError("Invalid alias definition, e.g. @RefinementAlias(\"Positive(int v) { v >= 0 }\")", s);
59+
throw new SyntaxError("Invalid alias definition, expected e.g. @RefinementAlias(\"Positive(int v) { v >= 0 }\")", s);
6060
return alias;
6161
}
6262

0 commit comments

Comments
 (0)