Skip to content

Commit

Permalink
Improve exception message when unable to call a widget, fixes #183
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Oct 10, 2017
1 parent 3fa869c commit d2b81e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ protected boolean freshLine() {
@Override
public void callWidget(String name) {
if (!reading) {
throw new IllegalStateException();
throw new IllegalStateException("Widgets can only be called during a `readLine` call");
}
try {
Widget w;
Expand Down

0 comments on commit d2b81e3

Please sign in to comment.