From c7f6a3eba978653e5716ee5d6911c40e7bfeddc7 Mon Sep 17 00:00:00 2001 From: Username404 Date: Wed, 29 Dec 2021 19:11:43 +0100 Subject: [PATCH] Actually flush cout before displaying errors --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index e70da8c..0b249ba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -92,7 +92,7 @@ int main(int argc, char* argv[]) { cout << result.first << '\n'; } } else { - cout << "Compilation of " << result.first << " has failed with the following error:\n"; + cout << "Compilation of " << result.first << " has failed with the following error:" << endl; cerr << result.second.value().what() << '\n'; } return is_exception;