mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
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) {
|
||||
error = new Error(response.status.details);
|
||||
error = new Error(status.details);
|
||||
error.code = status.code;
|
||||
error.metadata = status.metadata;
|
||||
callback(error);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user