diff --git a/src/main/java/com/google/api/generator/gapic/protoparser/HttpRuleParser.java b/src/main/java/com/google/api/generator/gapic/protoparser/HttpRuleParser.java index b55aaa263a..488bc52cea 100644 --- a/src/main/java/com/google/api/generator/gapic/protoparser/HttpRuleParser.java +++ b/src/main/java/com/google/api/generator/gapic/protoparser/HttpRuleParser.java @@ -130,11 +130,8 @@ private static void checkHttpFieldIsValid(String binding, Message inputMessage, Preconditions.checkState( inputMessage.fieldMap().containsKey(binding), String.format( - "Expected message %s to contain field %s but none found" - + ", DEL: " - + inputMessage.fieldMap().keySet(), - inputMessage.name(), - binding)); + "Expected message %s to contain field %s but none found", + inputMessage.name(), binding)); Field field = inputMessage.fieldMap().get(binding); boolean fieldCondition = !field.isRepeated(); if (!isBody) { diff --git a/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java b/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java index 832420374d..f2811a2e4d 100644 --- a/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java +++ b/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java @@ -569,9 +569,8 @@ static LongrunningOperation parseLro( Preconditions.checkNotNull( metadataMessage, String.format( - "LRO metadata message %s not found in method %s" + ", DEL: " + messageTypes.keySet(), - metadataTypeName, - methodDescriptor.getName())); + "LRO metadata message %s not found in method %s", + metadataTypeName, methodDescriptor.getName())); return LongrunningOperation.withTypes(responseMessage.type(), metadataMessage.type()); }