Print more information about ambiguous method names

pull/8247/head
Yuchen Zeng 8 years ago
parent 6679d78997
commit 7cd90c6816
  1. 3
      test/cpp/util/proto_file_parser.cc

@ -152,7 +152,8 @@ grpc::string ProtoFileParser::GetFullMethodName(const grpc::string& method) {
const auto* method_desc = service_desc->method(j);
if (MethodNameMatch(method_desc->full_name(), method)) {
if (method_descriptor) {
std::ostringstream error_stream("Ambiguous method names: ");
std::ostringstream error_stream;
error_stream << "Ambiguous method names: ";
error_stream << method_descriptor->full_name() << " ";
error_stream << method_desc->full_name();
LogError(error_stream.str());

Loading…
Cancel
Save