From 09a5d2979e7bb93b76ccab5e48e9e3ea3a39ba6f Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 31 Aug 2022 23:22:55 -0700 Subject: [PATCH] [chttp2] Better error message (#30800) * [chttp2] Better error message * expand * Update chttp2_transport.cc --- .../ext/transport/chttp2/transport/chttp2_transport.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc index f2d4e6fb322..a32b558dfac 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +++ b/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); }