From 61ae76644a2d68823aaeabf4c0310c1717f52236 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Thu, 7 Sep 2017 12:22:28 +0200 Subject: Fix Sonar error-handling issues Change-Id: Iae8a7d27ed4ba778abe5bdbb937f55fa4d7a6638 Signed-off-by: Marek Gradzki --- .../main/java/io/fd/honeycomb/infra/distro/schema/ResourceLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'infra/minimal-distribution-core/src/main') 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); } } -- cgit 1.2.3-korg