mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +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:
parent
1d08b671ea
commit
bf714efa41
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue