From 2f5745ca54d60fde9a7b37b109305f327d5d6216 Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Thu, 9 Aug 2007 08:37:13 +0000 Subject: Improve error reporting --- itjs/boot.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'itjs') diff --git a/itjs/boot.js b/itjs/boot.js index cf28518..311f28e 100644 --- a/itjs/boot.js +++ b/itjs/boot.js @@ -45,7 +45,14 @@ function it_boot_report(msg, file, line, error) window.clearTimeout(window.it_domtimer); window.clearTimeout(window.it_panictimer); - new Image().src = "/itjs/error.gif/" + escape(msg) + "|" + escape(file) + "|" + line + "|" + (new Date().getTime() - it_catcherrstart) + "|" + escape(error); + var more = ""; + if (error && typeof error == 'object') + for (var k in error) + more += k + "=" + error[k] + ";"; + else + more = error; + + new Image().src = "/itjs/error.gif/" + escape(msg) + "|" + escape(file) + "|" + line + "|" + (new Date().getTime() - it_catcherrstart) + "|" + escape(more); } function it_boot_checkcss(style, key, value) -- cgit v1.2.3