summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-08-09 08:37:13 +0000
committerThomas BrĂ¼derli2007-08-09 08:37:13 +0000
commit2f5745ca54d60fde9a7b37b109305f327d5d6216 (patch)
tree098d49f32a14b5f670d966bb379e3586fc604160 /itjs
parentfe9161ccaf3c504e3a9afbe66e49b6514922be0b (diff)
downloaditools-2f5745ca54d60fde9a7b37b109305f327d5d6216.tar.gz
itools-2f5745ca54d60fde9a7b37b109305f327d5d6216.tar.bz2
itools-2f5745ca54d60fde9a7b37b109305f327d5d6216.zip
Improve error reporting
Diffstat (limited to 'itjs')
-rw-r--r--itjs/boot.js9
1 files changed, 8 insertions, 1 deletions
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)