diff options
author | Thomas BrĂ¼derli | 2007-08-09 08:37:13 +0000 |
---|---|---|
committer | Thomas BrĂ¼derli | 2007-08-09 08:37:13 +0000 |
commit | 2f5745ca54d60fde9a7b37b109305f327d5d6216 (patch) | |
tree | 098d49f32a14b5f670d966bb379e3586fc604160 /itjs | |
parent | fe9161ccaf3c504e3a9afbe66e49b6514922be0b (diff) | |
download | itools-2f5745ca54d60fde9a7b37b109305f327d5d6216.tar.gz itools-2f5745ca54d60fde9a7b37b109305f327d5d6216.tar.bz2 itools-2f5745ca54d60fde9a7b37b109305f327d5d6216.zip |
Improve error reporting
Diffstat (limited to 'itjs')
-rw-r--r-- | itjs/boot.js | 9 |
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) |