From c15491a1269a754543054b0838dbf6c10ac0b8a3 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 13 Feb 2023 15:47:49 +0100 Subject: more docs --- it.class | 2 ++ 1 file changed, 2 insertions(+) diff --git a/it.class b/it.class index e2ddd4c..1082cd6 100644 --- a/it.class +++ b/it.class @@ -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; -- cgit v1.2.3