davsclaus commented on code in PR #28683:
URL: https://github.com/apache/camel/pull/28683#discussion_r4413379463
##########
core/camel-console/src/main/java/org/apache/camel/impl/console/EvalLanguageDevConsole.java:
##########
@@ -90,7 +97,7 @@ protected String doCallText(Map<String, Object> options) {
Predicate pre =
getCamelContext().resolveLanguage(language).createPredicate(template);
out = pre.matches(dummy) ? "true" : "false";
} else {
- Expression exp =
getCamelContext().resolveLanguage(language).createExpression(template);
+ Expression exp = createExpression(language, template, options);
Review Comment:
Fixed: doCallText() now catches the exception and prints the error message,
with a test for an unknown resultType on the text path.
_Claude Code on behalf of Claus Ibsen_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]