From 1a80f770ffdbd4130ff00f2b5068466a3e176e11 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 21 May 2021 04:02:50 +0200 Subject: [PATCH] Fix error messages. --- src/main.cpp | 2 +- src/zip.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1f40716..f37062c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -81,7 +81,7 @@ int main(int argc, char *argv[]) catch (const epubgrep::zip::exception &e) { cerr << translate("ERROR: ") << e.what() << '\n'; - cerr << translate("Error while processing epub file.") << '\n'; + cerr << translate("Error while processing EPUB file.") << '\n'; } } } diff --git a/src/zip.cpp b/src/zip.cpp index 0c13049..b340178 100644 --- a/src/zip.cpp +++ b/src/zip.cpp @@ -60,7 +60,7 @@ std::vector list(const fs::path &filepath) result = archive_read_free(zipfile); 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())}; }