Add expression string to failed expression evaluation exception message to help clarify the context.
This commit is contained in:
parent
27be04f5be
commit
897960cd70
|
@ -10,7 +10,7 @@ public final class ExpressionUtils {
|
|||
try {
|
||||
return ((Boolean) expr.getValue(ctx, Boolean.class)).booleanValue();
|
||||
} catch (EvaluationException e) {
|
||||
throw new IllegalArgumentException("Failed to evaluate expression", e);
|
||||
throw new IllegalArgumentException("Failed to evaluate expression '" + expr.getExpressionString() + "'", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue