Skip to content

Instantly share code, notes, and snippets.

@richdownie
Created August 14, 2013 19:22
Show Gist options
  • Save richdownie/6234589 to your computer and use it in GitHub Desktop.
Save richdownie/6234589 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
window.jsErrors = [];
window.onerror = function(errorMessage, url, linenumber) {
window.jsErrors[window.jsErrors.length] = errorMessage + ' (' + url + ':' + linenumber + ')';
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment