diff options
| author | Urban Müller | 2023-02-13 15:47:49 +0100 | 
|---|---|---|
| committer | Urban Müller | 2023-02-13 15:47:49 +0100 | 
| commit | c15491a1269a754543054b0838dbf6c10ac0b8a3 (patch) | |
| tree | ce9d43cce68ac1af1e7ffe275983499c66520cef | |
| parent | 839f9f45aa98d01d0b2e96ddef89f3edee7b0e8c (diff) | |
| download | itools-c15491a1269a754543054b0838dbf6c10ac0b8a3.tar.gz itools-c15491a1269a754543054b0838dbf6c10ac0b8a3.tar.bz2 itools-c15491a1269a754543054b0838dbf6c10ac0b8a3.zip | |
more docs
| -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; |