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:
Andreas Kling 2021-12-20 19:48:44 +01:00
parent bd8f10db80
commit db766d0972
Notes: sideshowbarker 2024-07-17 22:55:25 +09:00

View file

@ -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();