Suppose a particular user is using Chrome, and gets a runtime error which is logged in Chrome's Console. I'd like to know what that error is. Currently I would have to reach out to the specific user, get them to open up the console and tell me what the error is (or send a screenshot).
Is there a way for me to automatically catch or log that error (regardless of what the error is) and send it to the server?
As a follow-up question is there a way to do this for all major browsers?