Don't add extra newlines before errors.

This commit is contained in:
tastytea 2021-05-27 21:03:42 +02:00
parent 2b91a839cc
commit b96315f8bb
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 4 deletions

View File

@ -68,7 +68,7 @@ int main(int argc, char *argv[])
}
catch (std::exception &e)
{ // Exceptions we can't recover from or ones we don't know.
cerr << '\n' << translate("ERROR: ") << e.what() << '\n';
cerr << translate("ERROR: ") << e.what() << '\n';
cerr << translate("Error while parsing options.") << '\n';
return EXIT_FAILURE;
}
@ -112,8 +112,7 @@ int main(int argc, char *argv[])
continue;
}
cerr << '\n'
<< translate("ERROR: ")
cerr << translate("ERROR: ")
<< format(translate("Could not open {0:s}: {1:s}").str(),
e.path1(), e.what())
<< '\n';
@ -148,7 +147,7 @@ int main(int argc, char *argv[])
}
catch (const std::exception &e)
{
cerr << '\n' << translate("ERROR: ") << e.what() << '\n';
cerr << translate("ERROR: ") << e.what() << '\n';
cerr << format(translate("Error while searching {0:s}.")
.str(),
filepath)