diff options
author | Urban Müller | 2021-08-12 15:08:19 +0200 |
---|---|---|
committer | Urban Müller | 2021-08-12 15:08:19 +0200 |
commit | 7c4a1ff1b1f02f6ce0a3f2ee33580e1a8732b55f (patch) | |
tree | 6b0de577328e1d7721fc55f20f46042cb103ed62 | |
parent | 087155dad0dd309dd3021244a23385635dae2682 (diff) | |
download | itools-7c4a1ff1b1f02f6ce0a3f2ee33580e1a8732b55f.tar.gz itools-7c4a1ff1b1f02f6ce0a3f2ee33580e1a8732b55f.tar.bz2 itools-7c4a1ff1b1f02f6ce0a3f2ee33580e1a8732b55f.zip |
it::fatal should abort on okstatus=0 even when no report needed
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -208,7 +208,7 @@ static function error($p = array(), $extra = null) $failcount = $okstatus ? 0 : (int)@file_get_contents($okfn) + 1; # NOPHPLINT file_put_contents($okfn, "$failcount\n"); # NOPHPLINT if ($failcount != $p['failcount'] && $failcount != $p['failcount'] * 2) - return; + return $p['fatal'] && !$okstatus ? self::_exit($p) : null; # nothing to report } $context = is_callable(self::$error_context) ? (self::$error_context)() : []; |