Skip to content

Commit 50e442f

Browse files
authored
s2a: Include full exception in IOException
1 parent 7b4b109 commit 50e442f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

s2a/src/main/java/io/grpc/s2a/handshaker/S2AStub.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ public SessionResp send(SessionReq req) throws IOException, InterruptedException
102102
if (exception != null) {
103103
throw new IOException(
104104
"Received an unexpected response from a host at the S2A's address. The S2A might be"
105-
+ " unavailable."
106-
+ exception.getMessage());
105+
+ " unavailable.", exception);
107106
} else {
108107
throw new IOException("Received an unexpected response from a host at the S2A's address.");
109108
}

0 commit comments

Comments
 (0)