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 8e0443b9ce3 CAMEL-22145: camel-core: Include source location when throwing failed to create or start route exception so end user can better known which file has the problem. 8e0443b9ce3 is described below commit 8e0443b9ce34b4c83b94c3d70ee98b63da68cfb2 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Mon Jun 16 15:11:41 2025 +0200 CAMEL-22145: camel-core: Include source location when throwing failed to create or start route exception so end user can better known which file has the problem. --- .../component/disruptor/DisruptorConcurrentConsumersNPEIssueTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorConcurrentConsumersNPEIssueTest.java b/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorConcurrentConsumersNPEIssueTest.java index a80ece8046d..1f04ecbc34c 100644 --- a/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorConcurrentConsumersNPEIssueTest.java +++ b/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorConcurrentConsumersNPEIssueTest.java @@ -40,7 +40,7 @@ public class DisruptorConcurrentConsumersNPEIssueTest extends CamelTestSupport { Exception ex = assertThrows(FailedToStartRouteException.class, () -> routeController.startRoute("first")); - assertEquals("Failed to start route first because of Multiple consumers for the same endpoint is not " + assertEquals("Failed to start route: first because: Multiple consumers for the same endpoint is not " + "allowed: disruptor://foo?concurrentConsumers=5", ex.getMessage()); } @@ -62,7 +62,7 @@ public class DisruptorConcurrentConsumersNPEIssueTest extends CamelTestSupport { Exception ex = assertThrows(FailedToStartRouteException.class, () -> routeController.startRoute("first")); - assertEquals("Failed to start route first because of Multiple consumers for the same endpoint is not allowed:" + assertEquals("Failed to start route: first because: Multiple consumers for the same endpoint is not allowed:" + " disruptor://foo?concurrentConsumers=5", ex.getMessage()); }