Skip to content
Snippets Groups Projects
Commit 0561cd89 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

Merge pull request #5637 from murgatroid99/node_bad_message_handling

Node: propagate read errors back down to core
parents 602eff71 1d2933a5
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment