Corrected exception message inserts
This commit is contained in:
parent
4a7f7bb24a
commit
30bed7b54a
|
|
@ -154,7 +154,9 @@ public class ExpressionState {
|
||||||
return new TypedValue(returnValue,TypeDescriptor.forObject(returnValue));
|
return new TypedValue(returnValue,TypeDescriptor.forObject(returnValue));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new SpelException(SpelMessages.OPERATOR_NOT_SUPPORTED_BETWEEN_TYPES, op, left, right);
|
String leftType = (left==null?"null":left.getClass().getName());
|
||||||
|
String rightType = (right==null?"null":right.getClass().getName());
|
||||||
|
throw new SpelException(SpelMessages.OPERATOR_NOT_SUPPORTED_BETWEEN_TYPES, op, leftType, rightType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue