From 3fa1ec73007a71fdb577365312c593724592aa17 Mon Sep 17 00:00:00 2001
From: Urban Müller
Date: Mon, 8 Feb 2021 14:26:37 +0100
Subject: correctly report extra params; it::error has recursion protection

---
 it.class | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/it.class b/it.class
index 1c5d403..6f49195 100644
--- a/it.class
+++ b/it.class
@@ -161,7 +161,7 @@ static function error($p = array(), $extra = null)
 	$p['title'] = grapheme_substr($p['title'], 0, 2000);
 
 	if ($extra)
-		it::error('extraneous params passed to it::error');
+		$p = ['title' => 'extraneous params passed to it::error', 'fatal' => $p['fatal']];
 
 	foreach (array_slice(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 10), 1) as $level)
 		if ($level["class"] . $level["type"] . $level["function"] == "it::error")
-- 
cgit v1.2.3