mirror of https://github.com/grpc/grpc-node.git
Make client properly report when message deserialization fails
This commit is contained in:
parent
2ac2642dd4
commit
b3d98685ab
|
@ -336,7 +336,7 @@ function makeUnaryRequestFunction(method, serialize, deserialize) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (status.code !== grpc.status.OK) {
|
if (status.code !== grpc.status.OK) {
|
||||||
error = new Error(response.status.details);
|
error = new Error(status.details);
|
||||||
error.code = status.code;
|
error.code = status.code;
|
||||||
error.metadata = status.metadata;
|
error.metadata = status.metadata;
|
||||||
callback(error);
|
callback(error);
|
||||||
|
|
Loading…
Reference in New Issue