diff options
author | Andreas Kling <kling@serenityos.org> | 2021-12-20 19:48:44 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-20 22:16:05 +0100 |
commit | db766d097278f2a30ae0c7a82e30773b98dffca7 (patch) | |
tree | 48508ef62aa3a820d05568e86ddfe7fa198237ae /Userland/Libraries/LibMain | |
parent | bd8f10db80342757cc920c0d54a58d2b46f31b7a (diff) | |
download | serenity-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.cpp | 1 |
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(); |