diff options
author | Jack Lloyd <[email protected]> | 2018-06-29 12:04:06 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-06-29 12:04:06 -0400 |
commit | ec9d4b4d51e289436ce10f321a76dd74529bd143 (patch) | |
tree | c92301c29f779a24646cb0025db25403fc63fc9b /src | |
parent | 368c15987f58055051666218cf3a7163580f94ea (diff) |
Fix error - testing input file instead of output file
Diffstat (limited to 'src')
-rw-r--r-- | src/cli/compress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/compress.cpp b/src/cli/compress.cpp index 3104607fc..e62acd763 100644 --- a/src/cli/compress.cpp +++ b/src/cli/compress.cpp @@ -74,7 +74,7 @@ class Compress final : public Command const std::string out_file = output_filename(in_file, comp_type); std::ofstream out(out_file, std::ios::binary); - if(!in.good()) + if(!out.good()) { throw CLI_IO_Error("writing", out_file); } |