From bbf87674cf51c8ccbbc2a221021ab0bb30c3e455 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 18 Apr 2018 21:03:23 +0200 Subject: Fix HEAD^ --- modules/zelfoverhoor/docent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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){ -- cgit v1.2.3-70-g09d2