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
1 changed files with 1 additions and 4 deletions

View File

@ -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)