Merge pull request #5446 from murgatroid99/node_deserialize_error_reporting

Make client properly report when message deserialization fails
pull/5475/head
Jan Tattermusch 9 years ago
commit 6ba8910f79
  1. 2
      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);

Loading…
Cancel
Save