diff options
author | David G. Quintas <dgq@google.com> | 2018-01-11 15:32:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-11 15:32:34 -0800 |
commit | 951f84aea00a1f8a65cf160d7d8f342c30593000 (patch) | |
tree | 3b9b0e100f72ddb2f0d4d27960ad06aef6630249 /src/core | |
parent | 4db3b7413d35e8d4c75dc04c90338dd2d2557bbe (diff) |
Revert "Set error status correctly on server side"
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/surface/call.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/lib/surface/call.cc b/src/core/lib/surface/call.cc index d677576c14..a457aaa7a2 100644 --- a/src/core/lib/surface/call.cc +++ b/src/core/lib/surface/call.cc @@ -1851,9 +1851,8 @@ static grpc_call_error call_start_batch(grpc_call* call, const grpc_op* ops, { grpc_error* override_error = GRPC_ERROR_NONE; if (op->data.send_status_from_server.status != GRPC_STATUS_OK) { - override_error = - error_from_status(op->data.send_status_from_server.status, - "Returned non-ok status"); + override_error = GRPC_ERROR_CREATE_FROM_STATIC_STRING( + "Error from server send status"); } if (op->data.send_status_from_server.status_details != nullptr) { call->send_extra_metadata[1].md = grpc_mdelem_from_slices( |