From 9b2034123ff2dfc534bbe472be4b57ce69586811 Mon Sep 17 00:00:00 2001 From: Username404 Date: Fri, 24 Dec 2021 15:53:51 +0100 Subject: [PATCH] Output errors to clog instead of cout --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 0663e37..edaf6b7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -92,7 +92,8 @@ int main(int argc, char* argv[]) { cout << result.first << '\n'; } } else { - cout << "Compilation of " << result.first << " has failed with the following error:\n" << result.second.value().what() << '\n'; + cout << "Compilation of " << result.first << " has failed with the following error:\n"; + clog << result.second.value().what() << '\n'; } return is_exception; })) {