Use cerr instead of clog to make sure cout has been flushed before errors get displayed

This commit is contained in:
Username404-59 2021-12-25 18:34:39 +01:00
parent 9b2034123f
commit fe8a14631d
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
})) {