diff options
author | ncteisen <ncteisen@gmail.com> | 2017-11-13 08:02:35 -0800 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2017-11-13 08:02:35 -0800 |
commit | 40737d67ee93f3c60be1f0ff6486d6f045646312 (patch) | |
tree | fa41a4f70bc29d45be6cb8f532d71cb9525019f0 /include | |
parent | 396d26539af8ce8ff8b737b574800ab814f0e625 (diff) |
Add error string to recv status API
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc++/impl/codegen/call.h | 2 | ||||
-rw-r--r-- | include/grpc/impl/codegen/grpc_types.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/grpc++/impl/codegen/call.h b/include/grpc++/impl/codegen/call.h index 1a988297dc..91f45b3147 100644 --- a/include/grpc++/impl/codegen/call.h +++ b/include/grpc++/impl/codegen/call.h @@ -579,6 +579,7 @@ class CallOpClientRecvStatus { op->data.recv_status_on_client.trailing_metadata = metadata_map_->arr(); op->data.recv_status_on_client.status = &status_code_; op->data.recv_status_on_client.status_details = &error_message_; + op->data.recv_status_on_client.error_string = &error_string_; op->flags = 0; op->reserved = NULL; } @@ -605,6 +606,7 @@ class CallOpClientRecvStatus { Status* recv_status_; grpc_status_code status_code_; grpc_slice error_message_; + const char* error_string_; }; /// An abstract collection of call ops, used to generate the diff --git a/include/grpc/impl/codegen/grpc_types.h b/include/grpc/impl/codegen/grpc_types.h index 03be610d25..83b35b1dc4 100644 --- a/include/grpc/impl/codegen/grpc_types.h +++ b/include/grpc/impl/codegen/grpc_types.h @@ -558,6 +558,7 @@ typedef struct grpc_op { grpc_metadata_array* trailing_metadata; grpc_status_code* status; grpc_slice* status_details; + const char** error_string; } recv_status_on_client; struct grpc_op_recv_close_on_server { /** out argument, set to 1 if the call failed in any way (seen as a |