Merge pull request #5637 from murgatroid99/node_bad_message_handling

Node: propagate read errors back down to core
pull/5727/head
Jan Tattermusch 9 years ago
commit 0561cd89d2
  1. 3
      src/node/src/client.js

@ -149,6 +149,9 @@ function _readsDone(status) {
if (!status) {
status = {code: grpc.status.OK, details: 'OK'};
}
if (status.code !== grpc.status.OK) {
this.call.cancelWithStatus(status.code, status.details);
}
this.finished = true;
this.read_status = status;
this._emitStatusIfDone();

Loading…
Cancel
Save