From b9baf028662807302475465f4db338737c0b757c Mon Sep 17 00:00:00 2001 From: moonleay Date: Sun, 9 Feb 2025 21:25:51 +0100 Subject: [PATCH] fix: create newline between result nr and comment --- main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 4014c5c..f45f2b6 100644 --- a/main.cpp +++ b/main.cpp @@ -50,16 +50,16 @@ int main(int argc, char** argv) { sc->run(parameter); if (sc->should_display_result()) - cout << "100: Alles erfolgreich\n"; + cout << "100\nAlles erfolgreich\n"; return 0; } } } catch (Error& e) { - cout << e.get_nr() << ": " << e.what() << "\n"; + cout << e.get_nr() << "\n" << e.what() << "\n"; return 0; } - cout << "101: Befehl ist unbekannt.\n"; + cout << "101\nBefehl ist unbekannt.\n"; return 0; }