break on compress failure

This commit is contained in:
bence committed 2022-02-21 10:07:27 +01:00
1 parent 8c86b4cc62
commit a9a6537912
1 file changed
+5 -2
+5 -2
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;
} }