mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09: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: 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