diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2016-07-01 16:39:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 16:39:31 -0700 |
commit | 123a1b76d30f47527774d878f9e0e6cb30f4fb83 (patch) | |
tree | 2cdc145fdb21ac57e29a31f0f2833f5206c8ecec /examples | |
parent | a28a180b3bee6f1dac3ec5c298bcfbf790a62262 (diff) | |
parent | 753b45dcf8f06aaa9fad47ba8a4dbd6bcaa08275 (diff) |
Merge pull request #6893 from y-zeng/handler_http_response
Add http2 status code in error_message if it's not 200
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cpp/helloworld/greeter_client.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/cpp/helloworld/greeter_client.cc b/examples/cpp/helloworld/greeter_client.cc index bf3b63cb57..12209f37df 100644 --- a/examples/cpp/helloworld/greeter_client.cc +++ b/examples/cpp/helloworld/greeter_client.cc @@ -72,6 +72,8 @@ class GreeterClient { if (status.ok()) { return reply.message(); } else { + std::cout << status.error_code() << ": " << status.error_message() + << std::endl; return "RPC failed"; } } |