Actually flush cout before displaying errors

This commit is contained in:
Username404 2021-12-29 19:11:43 +01:00
parent 620bc4ba44
commit c7f6a3eba9
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ int main(int argc, char* argv[]) {
cout << result.first << '\n'; cout << result.first << '\n';
} }
} else { } 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'; cerr << result.second.value().what() << '\n';
} }
return is_exception; return is_exception;