From 6334b7051f70d4d5e382a0fc6c8ffbd571629125 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 23 May 2021 08:55:15 +0200 Subject: [PATCH] Newline before printing error messages. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index bc82761..3d4df4e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -56,7 +56,7 @@ int main(int argc, char *argv[]) } catch (std::exception &e) { // Exceptions we can't recover from or ones we don't know. - cerr << translate("ERROR: ") << e.what() << '\n'; + cerr << '\n' << translate("ERROR: ") << e.what() << '\n'; cerr << translate("Error while parsing options.") << '\n'; return EXIT_FAILURE; } @@ -85,7 +85,7 @@ int main(int argc, char *argv[]) } catch (const epubgrep::zip::exception &e) { - cerr << translate("ERROR: ") << e.what() << '\n'; + cerr << '\n' << translate("ERROR: ") << e.what() << '\n'; cerr << translate("Error while processing EPUB file.") << '\n'; return EXIT_FAILURE; }