mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-02-23 06:58:58 +00:00
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…
x
Reference in New Issue
Block a user