Skip to content

Commit 5a87fdc

Browse files
committed
Improve error message when parsing miss-aligned brackets.
1 parent acf7f44 commit 5a87fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/sosy_lab/java_smt/basicimpl/Tokenizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static List<String> tokenize(String input) {
133133
}
134134
if (level != 0) {
135135
// Throw an exception if the brackets don't match
136-
throw new IllegalArgumentException();
136+
throw new IllegalArgumentException("brackets do not match, too many open brackets");
137137
}
138138
return builder.build();
139139
}

0 commit comments

Comments
 (0)