I have this error handler but it doesn\'t set the textarea:
window.onerror = function (msg, url, lineNo, columnNo, error) { console.log("Error: "