summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibMain
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-12-20 19:48:44 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-20 22:16:05 +0100
commitdb766d097278f2a30ae0c7a82e30773b98dffca7 (patch)
tree48508ef62aa3a820d05568e86ddfe7fa198237ae /Userland/Libraries/LibMain
parentbd8f10db80342757cc920c0d54a58d2b46f31b7a (diff)
downloadserenity-db766d097278f2a30ae0c7a82e30773b98dffca7.zip
LibMain: Print serenity_main() errors to the debug log
And let's make them red too, to help us notice them. :^)
Diffstat (limited to 'Userland/Libraries/LibMain')
-rw-r--r--Userland/Libraries/LibMain/Main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibMain/Main.cpp b/Userland/Libraries/LibMain/Main.cpp
index e3d2bfdcb2..a61bbc041f 100644
--- a/Userland/Libraries/LibMain/Main.cpp
+++ b/Userland/Libraries/LibMain/Main.cpp
@@ -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();