summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-09-07 12:22:28 +0200
committerMarek Gradzki <mgradzki@cisco.com>2017-09-07 12:22:28 +0200
commit61ae76644a2d68823aaeabf4c0310c1717f52236 (patch)
treede07da73c868fc5bd00cba94fffde4bdb95144e7 /common
parent242a61de29d26eb2a47e95e0228ec72555f1a996 (diff)
Fix Sonar error-handling issues
Change-Id: Iae8a7d27ed4ba778abe5bdbb937f55fa4d7a6638 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'common')
-rw-r--r--common/yang-whitelist/yang-whitelist-impl/src/main/java/io/fd/honeycomb/yang/YangModuleWhitelistWriter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/yang-whitelist/yang-whitelist-impl/src/main/java/io/fd/honeycomb/yang/YangModuleWhitelistWriter.java b/common/yang-whitelist/yang-whitelist-impl/src/main/java/io/fd/honeycomb/yang/YangModuleWhitelistWriter.java
index d14b242..02bdfe1 100644
--- a/common/yang-whitelist/yang-whitelist-impl/src/main/java/io/fd/honeycomb/yang/YangModuleWhitelistWriter.java
+++ b/common/yang-whitelist/yang-whitelist-impl/src/main/java/io/fd/honeycomb/yang/YangModuleWhitelistWriter.java
@@ -66,7 +66,7 @@ public class YangModuleWhitelistWriter extends JAXBContextHolder {
try {
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, value);
} catch (PropertyException e) {
- throw new IllegalStateException("Unable to setup pretty print");
+ throw new IllegalStateException("Unable to setup pretty print", e);
}
}