mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-16 15:23:31 +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 {
|
try {
|
||||||
return ((Boolean) expr.getValue(ctx, Boolean.class)).booleanValue();
|
return ((Boolean) expr.getValue(ctx, Boolean.class)).booleanValue();
|
||||||
} catch (EvaluationException e) {
|
} 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