summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-04-18 21:03:23 +0200
committerTom Smeding <tom.smeding@gmail.com>2018-04-18 21:03:23 +0200
commitbbf87674cf51c8ccbbc2a221021ab0bb30c3e455 (patch)
treec4b970306072cd4f7e47c82f0fde9eb76bd8e38a /modules
parentc28df227a09cc083a266ba15defe545d8173ad15 (diff)
Fix HEAD^
Diffstat (limited to 'modules')
-rw-r--r--modules/zelfoverhoor/docent.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/zelfoverhoor/docent.js b/modules/zelfoverhoor/docent.js
index 1c738b2..635d5c5 100644
--- a/modules/zelfoverhoor/docent.js
+++ b/modules/zelfoverhoor/docent.js
@@ -1,9 +1,9 @@
window.addEventListener("error",function(err){
try {
- var str="("+err+") "+err.filename+":"+err.lineno+" "+err.error+": "+err.message;
+ var str="("+err+") ("+JSON.stringify(err)+") "+err.filename+":"+err.lineno+" "+err.error+": "+err.message;
var xhr=new XMLHttpRequest();
- xhr.responseType="text";
xhr.open("POST","/zelfoverhoor/error");
+ xhr.responseType="text";
xhr.setRequestHeader("Content-Type", "text/plain");
xhr.send(str);
} catch(e){