Error reporter

Last update in 1/2020

This post is in draft stage. You can help me finish it on GitHub.
window.onerror = function(msg, _path, line, column, error) {
fetch('/errors', {
error: error ? error.stack : '',
column: column,
line: line,
msg: msg,
})
return false
}