Created
May 28, 2021 18:37
-
-
Save crazy4groovy/7db4adecbf9f839383bde61d8a0159ff to your computer and use it in GitHub Desktop.
"most productive" exception handling ever (JavaScript)
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 that might go wrong... | |
} catch (e) { | |
var url = 'https://stackoverflow.com/search?q=[js]+' + e.message; | |
window.open(url, '_blank'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment