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 888ad707674 CAMEL-20746: camel-yaml-dsl - Exception should use correct
node in exception message. Thanks to Ton Bosma for spotting.
888ad707674 is described below
commit 888ad70767425ca57b568512b74789c9f32cdaa0
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed May 8 15:30:46 2024 +0200
CAMEL-20746: camel-yaml-dsl - Exception should use correct node in
exception message. Thanks to Ton Bosma for spotting.
---
.../java/org/apache/camel/dsl/yaml/common/YamlDeserializerSupport.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerSupport.java
b/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerSupport.java
index 234e10f7dfe..9ee9964998d 100644
---
a/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerSupport.java
+++
b/dsl/camel-yaml-dsl/camel-yaml-dsl-common/src/main/java/org/apache/camel/dsl/yaml/common/YamlDeserializerSupport.java
@@ -193,7 +193,7 @@ public class YamlDeserializerSupport {
answer.put(StringHelper.dashToCamelCase(key), asMap(val));
break;
default:
- throw new UnsupportedNodeTypeException(node);
+ throw new UnsupportedNodeTypeException(val);
}
}