From 7ecb6344736f5cb6ecae931889a4dcb77e343b6b Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 21 May 2021 04:12:58 +0200 Subject: [PATCH] Return failure on zip error. --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 415c69c..036be46 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -68,7 +68,7 @@ int main(int argc, char *argv[]) if (vm.count("input-file") > 0) { - cout << "\nINPUT FILES: "; + cout << "\nINPUT FILES:\n"; for (const auto &file : vm["input-file"].as>()) { cout << " " << file << ":\n"; @@ -83,6 +83,7 @@ int main(int argc, char *argv[]) { cerr << translate("ERROR: ") << e.what() << '\n'; cerr << translate("Error while processing EPUB file.") << '\n'; + return EXIT_FAILURE; } } }