We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acc0fb7 commit 0eaf13bCopy full SHA for 0eaf13b
AK/Assertions.cpp
@@ -89,7 +89,17 @@ extern "C" {
89
90
void ak_verification_failed(char const* message)
91
{
92
- ERRORLN("VERIFICATION FAILED: {}", message);
+# if defined(AK_OS_SERENITY) || defined(AK_OS_ANDROID)
93
+ bool colorize_output = true;
94
+# else
95
+ bool colorize_output = isatty(STDERR_FILENO) == 1;
96
+# endif
97
+
98
+ if (colorize_output)
99
+ ERRORLN("\033[31;1mVERIFICATION FAILED\033[0m: {}", message);
100
+ else
101
+ ERRORLN("VERIFICATION FAILED: {}", message);
102
103
# if defined(EXECINFO_BACKTRACE)
104
dump_backtrace();
105
# endif
0 commit comments