Add expression string to failed expression evaluation exception message to help clarify the context.

This commit is contained in:
Luke Taylor 2009-09-13 22:29:07 +00:00
parent 27be04f5be
commit 897960cd70
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}
}