From 03b367ee989c873df79830876a26b71d501552dd Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 29 May 2021 17:37:41 +0200 Subject: [PATCH] Don't print same file path twice in error message. zip::exception always has the filename in the message. --- src/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4aeb390..f096394 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -156,10 +156,7 @@ int main(int argc, char *argv[]) return EXIT_SUCCESS; } - cerr << translate("ERROR: ") << e.what(); - cerr << format(translate(" (while searching {0:s})").str(), - filepath) - << '\n'; + cerr << translate("ERROR: ") << e.what() << '\n'; return EXIT_FAILURE; } catch (const std::ifstream::failure &e)