[chttp2] Better error message (#30800)

* [chttp2] Better error message

* expand

* Update chttp2_transport.cc
pull/30626/head^2
Craig Tiller 2 years ago committed by GitHub
parent 029f945504
commit 09a5d2979e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/core/ext/transport/chttp2/transport/chttp2_transport.cc

@ -1164,8 +1164,11 @@ void grpc_chttp2_complete_closure_step(grpc_chttp2_transport* t,
grpc_error_handle cl_err =
grpc_core::internal::StatusMoveFromHeapPtr(closure->error_data.error);
if (GRPC_ERROR_IS_NONE(cl_err)) {
cl_err = GRPC_ERROR_CREATE_FROM_STATIC_STRING(
"Error in HTTP transport completing operation");
cl_err = GRPC_ERROR_CREATE_FROM_CPP_STRING(absl::StrCat(
"Error in HTTP transport completing operation: ", desc,
" write_state=", write_state_name(t->write_state), " refs=",
closure->next_data.scratch / CLOSURE_BARRIER_FIRST_REF_BIT, " flags=",
closure->next_data.scratch % CLOSURE_BARRIER_FIRST_REF_BIT));
cl_err = grpc_error_set_str(cl_err, GRPC_ERROR_STR_TARGET_ADDRESS,
t->peer_string);
}

Loading…
Cancel
Save