summaryrefslogtreecommitdiffstats
path: root/infra/minimal-distribution-core
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 /infra/minimal-distribution-core
parent242a61de29d26eb2a47e95e0228ec72555f1a996 (diff)
Fix Sonar error-handling issues
Change-Id: Iae8a7d27ed4ba778abe5bdbb937f55fa4d7a6638 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/minimal-distribution-core')
-rw-r--r--infra/minimal-distribution-core/src/main/java/io/fd/honeycomb/infra/distro/schema/ResourceLoader.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/minimal-distribution-core/src/main/java/io/fd/honeycomb/infra/distro/schema/ResourceLoader.java b/infra/minimal-distribution-core/src/main/java/io/fd/honeycomb/infra/distro/schema/ResourceLoader.java
index 60aaaae6b..88428e841 100644
--- a/infra/minimal-distribution-core/src/main/java/io/fd/honeycomb/infra/distro/schema/ResourceLoader.java
+++ b/infra/minimal-distribution-core/src/main/java/io/fd/honeycomb/infra/distro/schema/ResourceLoader.java
@@ -108,7 +108,7 @@ public interface ResourceLoader {
try {
return jar.getInputStream(jarEntry);
} catch (IOException e) {
- throw new IllegalStateException(format("Unable to get stream for entry %s | jar %s", jar, jarEntry));
+ throw new IllegalStateException(format("Unable to get stream for entry %s | jar %s", jar, jarEntry), e);
}
}
@@ -116,7 +116,7 @@ public interface ResourceLoader {
try {
return url.toURI();
} catch (URISyntaxException e) {
- throw new IllegalStateException(format("Unable to convert URL %s to URI", url));
+ throw new IllegalStateException(format("Unable to convert URL %s to URI", url), e);
}
}