From fe8a14631dcce7dde1ebc35a9b3cd3ab1dcce3bc Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sat, 25 Dec 2021 18:34:39 +0100 Subject: [PATCH] Use cerr instead of clog to make sure cout has been flushed before errors get displayed --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index edaf6b7..e25f8d6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -93,7 +93,7 @@ int main(int argc, char* argv[]) { } } else { cout << "Compilation of " << result.first << " has failed with the following error:\n"; - clog << result.second.value().what() << '\n'; + cerr << result.second.value().what() << '\n'; } return is_exception; })) {