File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/main/java/com/google/api/generator/gapic/protoparser Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -367,10 +367,16 @@ static LongrunningOperation parseLro(
367
367
Message responseMessage = messageTypes .get (responseTypeName );
368
368
Message metadataMessage = messageTypes .get (metadataTypeName );
369
369
Preconditions .checkNotNull (
370
- responseMessage , String .format ("LRO response message %s not found" , responseTypeName ));
370
+ responseMessage ,
371
+ String .format (
372
+ "LRO response message %s not found on method %s" ,
373
+ responseTypeName , methodDescriptor .getName ()));
371
374
// TODO(miraleung): Check that the packages are equal if those strings are not empty.
372
375
Preconditions .checkNotNull (
373
- metadataMessage , String .format ("LRO metadata message %s not found" , metadataTypeName ));
376
+ metadataMessage ,
377
+ String .format (
378
+ "LRO metadata message %s not found in method %s" ,
379
+ metadataTypeName , methodDescriptor .getName ()));
374
380
375
381
return LongrunningOperation .withTypes (responseMessage .type (), metadataMessage .type ());
376
382
}
You can’t perform that action at this time.
0 commit comments