Don't print same file path twice in error message.

zip::exception always has  the filename in the message.
This commit is contained in:
tastytea 2021-05-29 17:37:41 +02:00
parent 00e3edb9f2
commit 03b367ee98
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -156,10 +156,7 @@ int main(int argc, char *argv[])
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
cerr << translate("ERROR: ") << e.what(); cerr << translate("ERROR: ") << e.what() << '\n';
cerr << format(translate(" (while searching {0:s})").str(),
filepath)
<< '\n';
return EXIT_FAILURE; return EXIT_FAILURE;
} }
catch (const std::ifstream::failure &e) catch (const std::ifstream::failure &e)