diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-09-07 12:22:28 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-09-08 10:09:39 +0200 |
commit | 4bb8e498d8b0a95c225c33741d6807315c4320d3 (patch) | |
tree | e4bdb2d8001b58a12859aa5e58c743be4820466e /infra/minimal-distribution-core/src/main/java/io | |
parent | 712da21827b89b0e809f4f9ffa4da191ad387086 (diff) |
Fix Sonar error-handling issues
Change-Id: Iae8a7d27ed4ba778abe5bdbb937f55fa4d7a6638
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/minimal-distribution-core/src/main/java/io')
-rw-r--r-- | infra/minimal-distribution-core/src/main/java/io/fd/honeycomb/infra/distro/schema/ResourceLoader.java | 4 |
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 c851dab1b..925c58421 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 @@ -104,7 +104,7 @@ 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); } } @@ -112,7 +112,7 @@ 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); } } |