Created
February 7, 2016 16:40
-
-
Save jfonte/af785b031bd17fd1a4a4 to your computer and use it in GitHub Desktop.
right way to process JS exceptions
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
try{ | |
whatever | |
}catch(e){ | |
windows.location.href = "http://stackoverflow.com/search?q=[js]+"+e.message; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment