diff options
author | Urban Müller | 2021-02-12 14:28:29 +0100 |
---|---|---|
committer | Urban Müller | 2021-02-12 14:28:29 +0100 |
commit | a35d8927af3bee4cd7b9f030bd6f6f4992eb139a (patch) | |
tree | 73ebe5719853505f38b7a6c34f927eeee4e1f596 | |
parent | 93e47c67c7301ef2a86b23d18d0aa4ac39b3ec7f (diff) | |
download | itools-a35d8927af3bee4cd7b9f030bd6f6f4992eb139a.tar.gz itools-a35d8927af3bee4cd7b9f030bd6f6f4992eb139a.tar.bz2 itools-a35d8927af3bee4cd7b9f030bd6f6f4992eb139a.zip |
correctly put Fatal: in front of uncaught exceptions
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |