summaryrefslogtreecommitdiff
path: root/modules/zelfoverhoor
diff options
context:
space:
mode:
Diffstat (limited to 'modules/zelfoverhoor')
-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){