Created
July 24, 2019 14:46
-
-
Save louis-e/6c9e99725458ab71becbe61547873ebb to your computer and use it in GitHub Desktop.
JavaScript Try-Catch Stackoverflow
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 { | |
//something | |
} catch(e) { | |
window.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