aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/compress.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-06-29 12:04:06 -0400
committerJack Lloyd <[email protected]>2018-06-29 12:04:06 -0400
commitec9d4b4d51e289436ce10f321a76dd74529bd143 (patch)
treec92301c29f779a24646cb0025db25403fc63fc9b /src/cli/compress.cpp
parent368c15987f58055051666218cf3a7163580f94ea (diff)
Fix error - testing input file instead of output file
Diffstat (limited to 'src/cli/compress.cpp')
-rw-r--r--src/cli/compress.cpp2
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);
}