mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
LibMain: Print serenity_main() errors to the debug log
And let's make them red too, to help us notice them. :^)
This commit is contained in:
parent
bd8f10db80
commit
db766d0972
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ int main(int argc, char** argv)
|
|||
if (result.is_error()) {
|
||||
auto error = result.release_error();
|
||||
warnln("Runtime error: {}", error);
|
||||
dbgln("\033[31;1mExiting with runtime error\033[0m: {}", error);
|
||||
return 1;
|
||||
}
|
||||
return result.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue