diff options
author | Yang Gao <yangg@google.com> | 2015-06-16 10:59:46 -0700 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-06-16 10:59:46 -0700 |
commit | c1a2c314fb45dafe73b01db23944503cf8961330 (patch) | |
tree | d4530702a7f059602e44c7c681c2a2a916af725b /test/cpp/util/cli_call.cc | |
parent | c1c697a89773558b31c63211bed7ef7a19759bce (diff) |
Update the Status API
Diffstat (limited to 'test/cpp/util/cli_call.cc')
-rw-r--r-- | test/cpp/util/cli_call.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cpp/util/cli_call.cc b/test/cpp/util/cli_call.cc index eb67b8d314..fa952e8349 100644 --- a/test/cpp/util/cli_call.cc +++ b/test/cpp/util/cli_call.cc @@ -86,7 +86,7 @@ void CliCall::Call(std::shared_ptr<grpc::ChannelInterface> channel, cq.Next(&got_tag, &ok); GPR_ASSERT(ok); - if (status.IsOk()) { + if (status.ok()) { std::cout << "RPC finished with OK status." << std::endl; std::vector<grpc::Slice> slices; recv_buffer.Dump(&slices); @@ -97,8 +97,8 @@ void CliCall::Call(std::shared_ptr<grpc::ChannelInterface> channel, slices[i].size()); } } else { - std::cout << "RPC finished with status code " << status.code() - << " details: " << status.details() << std::endl; + std::cout << "RPC finished with status code " << status.error_code() + << " details: " << status.error_message() << std::endl; } } |