Print trailing metadata in the "grpc_cli call" command.

This often includes important debugging information when the RPC returns
a non-OK status.
pull/14478/head
Carlos Valera 7 years ago
parent d555bd8543
commit efce74b525
  1. 2
      test/cpp/util/grpc_tool.cc

@ -747,6 +747,8 @@ bool GrpcTool::CallMethod(int argc, const char** argv,
}
}
Status status = call.Finish(&server_trailing_metadata);
PrintMetadata(server_trailing_metadata,
"Received trailing metadata from server:");
if (status.ok()) {
fprintf(stderr, "Rpc succeeded with OK status\n");
return true;

Loading…
Cancel
Save