From a35d8927af3bee4cd7b9f030bd6f6f4992eb139a Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 12 Feb 2021 14:28:29 +0100 Subject: correctly put Fatal: in front of uncaught exceptions --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index e713d0f..b97bd7c 100644 --- a/it.class +++ b/it.class @@ -293,7 +293,7 @@ static function error($p = array(), $extra = null) $body = it::replace(array('(pw|passw|password\d*|secret)(\' => |\] => |=)[^&\s]*' => '$1$2********'), $body, array('utf8' => false)); } - $type = ($p['fatal'] ? "Fatal: " : "Error: "); + $type = ($p['fatal'] || it::match('^\w+: Uncaught ', $p['title']) ? "Fatal: " : "Error: "); $debugparams = it::replace(['^debug_' => ""], it::grep('^debug_(.*)', array_keys($GLOBALS))); if (!it::is_live() || array_diff($debugparams, it::match('[-\w]+', $GLOBALS['ULTRAHOME'], ['all' => true]), ["devel", "twin", "utf8check", gethostname()])) $type = mb_strtolower($type); -- cgit v1.2.3