Generate JS file even if no services are defined in proto file; fix #574

This commit is contained in:
Max Vorobev 2018-10-13 21:35:49 +03:00
parent fae76dec4a
commit 0aedb0768c
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ grpc::string GenerateFile(const FileDescriptor* file,
Printer out(&output_stream, '$');
if (file->service_count() == 0) {
output = "// GENERATED CODE -- NO SERVICES IN PROTO";
return output;
}
out.Print("// GENERATED CODE -- DO NOT EDIT!\n\n");