progress #369
This commit is contained in:
parent
a0b509c2a7
commit
6c819429d7
|
@ -119,7 +119,7 @@ public class Token {
|
||||||
|
|
||||||
String getLiteral() {
|
String getLiteral() {
|
||||||
if (!this.kind.equals(Kind.LITERAL)) {
|
if (!this.kind.equals(Kind.LITERAL)) {
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException("Literal expected but " + kind);
|
||||||
}
|
}
|
||||||
return (String)this.content;
|
return (String)this.content;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue