mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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
Notes:
sideshowbarker
2024-07-17 22:55:25 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/db766d09727
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…
Reference in a new issue