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.
pull/10432/head
Alena Varkockova 8 years ago committed by GitHub
parent 4fc230a724
commit 7b9cb834ff
  1. 1
      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;
}

Loading…
Cancel
Save