Don't print same file path twice in error message.
zip::exception always has the filename in the message.
This commit is contained in:
parent
00e3edb9f2
commit
03b367ee98
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user