break on compress failure

This commit is contained in:
Bence Pőcze 2022-02-21 10:07:27 +01:00
parent 8c86b4cc62
commit a9a6537912
Signed by: bence
GPG Key ID: 0520C81918569406

View File

@ -44,10 +44,13 @@ int main(int argc, char *argv[])
if (std::fclose(outfile)) if (std::fclose(outfile))
{ {
std::cout << " FAILED!" << std::endl
<< std::flush;
fprintf(stderr, "Write error: %s\n", std::strerror(errno)); fprintf(stderr, "Write error: %s\n", std::strerror(errno));
success = false; success = false;
}
if (!success) {
std::cout << " FAILED!" << std::endl
<< std::flush;
break; break;
} }