diff options
author | Carl Mastrangelo <notcarl@google.com> | 2017-12-04 19:00:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-04 19:00:16 -0800 |
commit | c9b02db276403db4794c6e5ffc78b46889cd4ce8 (patch) | |
tree | aa152ee2e88b0598a42f4966359e427b1a93a3d5 /grpclb | |
parent | 2d88269965609e41d86410c57be099db5f72a207 (diff) | |
download | grpc-grpc-java-c9b02db276403db4794c6e5ffc78b46889cd4ce8.tar.gz |
all: add Status messages to all statuses
Diffstat (limited to 'grpclb')
-rw-r--r-- | grpclb/src/main/java/io/grpc/grpclb/GrpclbState.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/grpclb/src/main/java/io/grpc/grpclb/GrpclbState.java b/grpclb/src/main/java/io/grpc/grpclb/GrpclbState.java index 56e451a06..34c96abf9 100644 --- a/grpclb/src/main/java/io/grpc/grpclb/GrpclbState.java +++ b/grpclb/src/main/java/io/grpc/grpclb/GrpclbState.java @@ -530,7 +530,10 @@ final class GrpclbState { address = new InetSocketAddress( InetAddress.getByAddress(server.getIpAddress().toByteArray()), server.getPort()); } catch (UnknownHostException e) { - propagateError(Status.UNAVAILABLE.withCause(e)); + propagateError( + Status.UNAVAILABLE + .withDescription("Host for server not found: " + server) + .withCause(e)); continue; } EquivalentAddressGroup eag = new EquivalentAddressGroup(address); |