This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.4.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.4.x by this push:
new fbb373b9169 CAMEL-20746: camel-yaml-dsl - Exception should use correct
node in exception message. Thanks to Ton Bosma for spotting.
fbb373b9169 is described below
commit fbb373b916913904dbce06b03285293c07ddaa6d
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);
}
}