mirror of https://github.com/grpc/grpc-node.git
Node: propagate read errors back down to core
This commit is contained in:
parent
c85428c74b
commit
cb72b166fd
|
@ -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…
Reference in New Issue