Category: sentry

What the Heck Does “Script Error” Mean?

This article was created in partnership with Sentry.io. Thank you for supporting the partners who make SitePoint possible. If you’ve done any work with the JavaScript onerror event before, you’ve probably come across the following: Script error. “Script error” is what browsers send to the oner...

Capture and Report JavaScript Errors with window.onerror

This article was created in partnership with Sentry. Thank you for supporting the partners who make SitePoint possible. onerror is a special browser event that fires whenever an uncaught JavaScript error has been thrown. It's one of the easiest ways to log client-side errors and report them to your servers. It'...