Skip to content

Commit

Permalink
Catch IOException immediately from where it was thrown
Browse files Browse the repository at this point in the history
Co-authored-by: Mark S. Lewis <[email protected]>
Signed-off-by: Breina <[email protected]>
  • Loading branch information
Breina and bestbeforetoday authored Nov 28, 2023
1 parent 8abf67c commit 6cb12c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/hyperledger/fabric/sdk/Endpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ private NettyChannelBuilder createGrpcsChannelBuilder(
sslContext = clientContextBuilder
.trustManager(myInputStream)
.build();
} catch (IOException e) {
throw new UncheckedIOException(e);
}

channelBuilder = NettyChannelBuilder
Expand Down

0 comments on commit 6cb12c6

Please sign in to comment.