better error handling
This commit is contained in:
parent
9d8537d434
commit
1395d38c15
|
@ -138,7 +138,7 @@ public abstract class AbstractEvaluator<T> {
|
|||
rpnPush("deq", operator.getSymbol());
|
||||
values.push(evaluate(operator, getArguments(values, operator.getOperandCount()), evaluationContext));
|
||||
} else {
|
||||
throw new IllegalArgumentException();
|
||||
throw new IllegalArgumentException(token.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue