Return failure on zip error.

This commit is contained in:
tastytea 2021-05-21 04:12:58 +02:00
parent 1229e295ef
commit 7ecb634473
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 1 deletions

View File

@ -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<std::vector<std::string>>())
{
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;
}
}
}