diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -142,6 +142,7 @@ static function timerlog($label = '') * @param $p['failcount'] give number of consecutive okstate failures needed for creating an error [2] * @param $p['fatal'] exit after displaying error * @param $p['graceperiod'] in seconds. DEPRECATED, see $p['timewindow'] + * Use debug param 'verboseerrors' to include $p['body'] when interactive * * @return always null (so users can return it::error() in error cases) * @@ -169,6 +170,7 @@ static function error($p = array(), $extra = null) $p['title'] = $p[0] ?: $p['title']; # handle 'it_error' => "oops" that was cast to array on the way $p['title'] = grapheme_substr($p['title'], 0, 2000) ?: substr($p['title'], 0, 2000); + # support for errlike() in tests $GLOBALS['ULTRAERROR'] = $p['title']; if ($GLOBALS['ULTRANOERRORS']) return null; |