diff options
author | 2017-04-02 22:02:09 +0200 | |
---|---|---|
committer | 2017-04-02 22:02:09 +0200 | |
commit | 7b9cb834ff6dcc9af126c4cc541093b14cf5f691 (patch) | |
tree | b1055c87409fe5fa955298757b544ce979493a67 /test/cpp/util | |
parent | 4fc230a724ace5edf8d9f5137214b2d2acc85e5a (diff) |
Print out some cli error message for getservices
Currently, when you cann grpc_cli ls on an endpoint that does not have service reflection, the cli just silently ends without printing out any error or message.
This PR should fix that.
Diffstat (limited to 'test/cpp/util')
-rw-r--r-- | test/cpp/util/grpc_tool.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cpp/util/grpc_tool.cc b/test/cpp/util/grpc_tool.cc index 856cd32c3c..c7acb7c631 100644 --- a/test/cpp/util/grpc_tool.cc +++ b/test/cpp/util/grpc_tool.cc @@ -321,6 +321,7 @@ bool GrpcTool::ListServices(int argc, const char** argv, std::vector<grpc::string> service_list; if (!desc_db.GetServices(&service_list)) { + fprintf(stderr, "Received an error when querying services endpoint.\n"); return false; } |