1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:07:36 +00:00

LibMain: Make "Runtime error" warnln red

Stealing what Andreas did for the `dbgln` output, I think it also looks
nice inside of Terminal :^)
This commit is contained in:
James Puleo 2021-12-23 11:05:09 -05:00 committed by Brian Gianforcaro
parent 1d08b671ea
commit bf714efa41

View file

@ -24,7 +24,7 @@ int main(int argc, char** argv)
}); });
if (result.is_error()) { if (result.is_error()) {
auto error = result.release_error(); auto error = result.release_error();
warnln("Runtime error: {}", error); warnln("\033[31;1mRuntime error\033[0m: {}", error);
#ifdef __serenity__ #ifdef __serenity__
dbgln("\033[31;1mExiting with runtime error\033[0m: {}", error); dbgln("\033[31;1mExiting with runtime error\033[0m: {}", error);
#endif #endif