Merge pull request #8409 from srago/protoc-fix

add error returns missing from protoc to prevent it from exiting with…
pull/8422/head
Adam Cozzette 4 years ago committed by GitHub
commit 617e255617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/google/protobuf/compiler/command_line_interface.cc

@ -586,10 +586,12 @@ bool CommandLineInterface::GeneratorContextImpl::WriteAllToZip(
if (stream.GetErrno() != 0) {
std::cerr << filename << ": " << strerror(stream.GetErrno()) << std::endl;
return false;
}
if (!stream.Close()) {
std::cerr << filename << ": " << strerror(stream.GetErrno()) << std::endl;
return false;
}
return true;

Loading…
Cancel
Save