Fix error messages.
This commit is contained in:
parent
a3eeb41f99
commit
1a80f770ff
|
@ -81,7 +81,7 @@ int main(int argc, char *argv[])
|
||||||
catch (const epubgrep::zip::exception &e)
|
catch (const epubgrep::zip::exception &e)
|
||||||
{
|
{
|
||||||
cerr << translate("ERROR: ") << e.what() << '\n';
|
cerr << translate("ERROR: ") << e.what() << '\n';
|
||||||
cerr << translate("Error while processing epub file.") << '\n';
|
cerr << translate("Error while processing EPUB file.") << '\n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ std::vector<std::string> list(const fs::path &filepath)
|
||||||
result = archive_read_free(zipfile);
|
result = archive_read_free(zipfile);
|
||||||
if (result != ARCHIVE_OK)
|
if (result != ARCHIVE_OK)
|
||||||
{
|
{
|
||||||
throw exception{format(translate("ERROR: Could not close {0:s}.").str(),
|
throw exception{format(translate("Could not close {0:s}.").str(),
|
||||||
filepath.string())};
|
filepath.string())};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user