File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
independent-projects/qute/debug/src/main/java/io/quarkus/qute/debug/agent Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,15 @@ public CompletableFuture<Object> evaluate(String expression) {
176176 * </p>
177177 */
178178 private CompletableFuture <Object > evaluateExpressionInRenderThread (String expression ) {
179- return remoteThread .evaluateInRenderThread (() -> event .getContext ().evaluate (expression ).toCompletableFuture ());
179+ return remoteThread .evaluateInRenderThread (() -> {
180+ try {
181+ return event .getContext ().evaluate (expression ).toCompletableFuture ();
182+ } catch (Exception e ) {
183+ // ex : with expression 'http:', the getContext().evaluate(expression) throws a TemplateException
184+ // with the message "Parser error: empty expression found {http:}"
185+ return CompletableFuture .failedFuture (e );
186+ }
187+ });
180188 }
181189
182190 /**
You can’t perform that action at this time.
0 commit comments