Output errors to clog instead of cout

This commit is contained in:
Username404 2021-12-24 15:53:51 +01:00
parent e367ece77d
commit 9b2034123f
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 1 deletions

View File

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