diff options
author | 2016-06-23 13:55:06 -0700 | |
---|---|---|
committer | 2016-06-23 13:55:06 -0700 | |
commit | f0f70a8a68c107f9fcff2dd35867fd762c2c13d6 (patch) | |
tree | a64ce4dfc7103299acf5d033e745c39be88bbcef /src/core/lib/channel/channel_stack.c | |
parent | d605b63383678313aaf3a6a3be7d8f9fc7ca67e9 (diff) |
Make transport-level errors be reflected in status messages on calls
Allows us to eliminate logging those errors by default (since they are explicitly passed up to the application).
Required plumbing errors through the stack a little more deeply than we
had previously.
Diffstat (limited to 'src/core/lib/channel/channel_stack.c')
-rw-r--r-- | src/core/lib/channel/channel_stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/channel/channel_stack.c b/src/core/lib/channel/channel_stack.c index bbba85d80b..42075b127b 100644 --- a/src/core/lib/channel/channel_stack.c +++ b/src/core/lib/channel/channel_stack.c @@ -263,6 +263,6 @@ void grpc_call_element_send_cancel(grpc_exec_ctx *exec_ctx, grpc_call_element *cur_elem) { grpc_transport_stream_op op; memset(&op, 0, sizeof(op)); - op.cancel_with_status = GRPC_STATUS_CANCELLED; + op.cancel_error = GRPC_ERROR_CANCELLED; grpc_call_next_op(exec_ctx, cur_elem, &op); } |