diff options
author | 2016-02-26 13:25:49 -0800 | |
---|---|---|
committer | 2016-02-26 13:25:49 -0800 | |
commit | ef3528e2a19f96a17434fcc6a672e1279ea4c262 (patch) | |
tree | 0c0a1d8a5cf54ee9ff8aa4f57c344da246404a42 /src | |
parent | 22648b7f7c83d80b71ac312864f760775f8d5abd (diff) |
Make client properly report when message deserialization fails
Diffstat (limited to 'src')
-rw-r--r-- | src/node/src/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/src/client.js b/src/node/src/client.js index c65dd73650..d6aa999502 100644 --- a/src/node/src/client.js +++ b/src/node/src/client.js @@ -336,7 +336,7 @@ function makeUnaryRequestFunction(method, serialize, deserialize) { } } if (status.code !== grpc.status.OK) { - error = new Error(response.status.details); + error = new Error(status.details); error.code = status.code; error.metadata = status.metadata; callback(error); |