Created
March 23, 2014 03:09
-
-
Save purplecabbage/9718060 to your computer and use it in GitHub Desktop.
Catch a log window errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("error", function (err) { | |
console.log("Error in file: " + err.filename + | |
" ln:" + err.lineno + | |
" : " + err.message); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment