Skip to content

Commit

Permalink
Merge pull request #8409 from srago/protoc-fix
Browse files Browse the repository at this point in the history
add error returns missing from protoc to prevent it from exiting with…
  • Loading branch information
acozzette committed Mar 18, 2021
2 parents f579403 + 57e09ad commit 617e255
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/google/protobuf/compiler/command_line_interface.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 617e255

Please sign in to comment.