From 36f38cf5e746005544ef8b327692f14d3905b488 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 10 Oct 2007 14:07:36 +0000 Subject: Show file:line if backtrace is empty (happens when stack dump too large) --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index 5e23e55..1b6c317 100644 --- a/it.class +++ b/it.class @@ -211,7 +211,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate echo "
{$p['title']}\n$body
"; } - error_log("it::error: " . $p['title'] . " in " . ($trace ? $trace : $p['line']) . " Url: $url " . (EDC('verbose') ? D($p['locals']) : "")); + error_log("it::error: " . $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url " . (EDC('verbose') ? D($p['locals']) : "")); } -- cgit v1.2.3