Don't add extra newlines before errors.
This commit is contained in:
parent
2b91a839cc
commit
b96315f8bb
|
@ -68,7 +68,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
catch (std::exception &e)
|
catch (std::exception &e)
|
||||||
{ // Exceptions we can't recover from or ones we don't know.
|
{ // 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';
|
cerr << translate("Error while parsing options.") << '\n';
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
@ -112,8 +112,7 @@ int main(int argc, char *argv[])
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
cerr << '\n'
|
cerr << translate("ERROR: ")
|
||||||
<< translate("ERROR: ")
|
|
||||||
<< format(translate("Could not open {0:s}: {1:s}").str(),
|
<< format(translate("Could not open {0:s}: {1:s}").str(),
|
||||||
e.path1(), e.what())
|
e.path1(), e.what())
|
||||||
<< '\n';
|
<< '\n';
|
||||||
|
@ -148,7 +147,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
catch (const std::exception &e)
|
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}.")
|
cerr << format(translate("Error while searching {0:s}.")
|
||||||
.str(),
|
.str(),
|
||||||
filepath)
|
filepath)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user