This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new a93cdf11778 Polished
a93cdf11778 is described below

commit a93cdf11778f05406444810f6a36d9b21ae13374
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Sep 20 17:22:16 2024 +0200

    Polished
---
 .../apache/camel/component/platform/http/main/MainHttpServer.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
 
b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
index 4974e06bd36..c3affe103e9 100644
--- 
a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
+++ 
b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
@@ -918,7 +918,10 @@ public class MainHttpServer extends ServiceSupport 
implements CamelContextAware,
                     ctx.end("Developer Console is not enabled on CamelContext. 
Set camel.context.dev-console=true in application.properties");
                 }
                 DevConsoleRegistry dcr = 
camelContext.getCamelContextExtension().getContextPlugin(DevConsoleRegistry.class);
-                if (dcr == null || !dcr.isEnabled()) {
+                if (dcr == null) {
+                    ctx.end("Developer Console is not included. Add 
camel-console to classpath.");
+                    return;
+                } else if (!dcr.isEnabled()) {
                     ctx.end("Developer Console is not enabled");
                     return;
                 }

Reply via email to