We should have something that keeps track of errors (or at least tries to) that happen on clients so we know if things are broken.
I'm thinking something like
window.onerror = function () { ...[current code here] ...
post('/client-error-report', {
message: e.message,
userAgent: [...]
});
};
And the server can just dump it to a log file (for now, at least). Later we can do processing on it if there's lots of errors.
We should have something that keeps track of errors (or at least tries to) that happen on clients so we know if things are broken.
I'm thinking something like
And the server can just dump it to a log file (for now, at least). Later we can do processing on it if there's lots of errors.