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

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git

commit 149837f6f107792bf0b7c519ff5adb01a5967d11
Author: Andi Huber <[email protected]>
AuthorDate: Wed Jan 24 10:59:45 2024 +0100

    CAUSEWAY-3404: YamlUtils: don't swallow exceptions on write
---
 commons/src/main/java/org/apache/causeway/commons/io/YamlUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/commons/src/main/java/org/apache/causeway/commons/io/YamlUtils.java 
b/commons/src/main/java/org/apache/causeway/commons/io/YamlUtils.java
index cf5f025549..f7b6efac0b 100644
--- a/commons/src/main/java/org/apache/causeway/commons/io/YamlUtils.java
+++ b/commons/src/main/java/org/apache/causeway/commons/io/YamlUtils.java
@@ -91,7 +91,7 @@ public class YamlUtils {
             final YamlUtils.YamlDumpCustomizer ... customizers) {
         if(pojo==null) return;
         sink.writeAll(os->
-            Try.run(()->createMapper(pojo.getClass(), Can.empty(), 
Can.ofArray(customizers)).dump(pojo, new OutputStreamWriter(os))));
+            createMapper(pojo.getClass(), Can.empty(), 
Can.ofArray(customizers)).dump(pojo, new OutputStreamWriter(os)));
     }
 
     /**

Reply via email to