diff --git a/src/compress_measurements.cpp b/src/compress_measurements.cpp index e84b15c..ef6271d 100644 --- a/src/compress_measurements.cpp +++ b/src/compress_measurements.cpp @@ -44,10 +44,13 @@ int main(int argc, char *argv[]) if (std::fclose(outfile)) { - std::cout << " FAILED!" << std::endl - << std::flush; fprintf(stderr, "Write error: %s\n", std::strerror(errno)); success = false; + } + + if (!success) { + std::cout << " FAILED!" << std::endl + << std::flush; break; }