summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 2 insertions, 0 deletions
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;