Skip to content

Commit

Permalink
s2a: Include full exception in IOException
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta19 authored Sep 30, 2024
1 parent 7b4b109 commit 50e442f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions s2a/src/main/java/io/grpc/s2a/handshaker/S2AStub.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ public SessionResp send(SessionReq req) throws IOException, InterruptedException
if (exception != null) {
throw new IOException(
"Received an unexpected response from a host at the S2A's address. The S2A might be"
+ " unavailable."
+ exception.getMessage());
+ " unavailable.", exception);
} else {
throw new IOException("Received an unexpected response from a host at the S2A's address.");
}
Expand Down

0 comments on commit 50e442f

Please sign in to comment.