Skip to content

Instantly share code, notes, and snippets.

@louis-e
Created July 24, 2019 14:46
Show Gist options
  • Save louis-e/6c9e99725458ab71becbe61547873ebb to your computer and use it in GitHub Desktop.
Save louis-e/6c9e99725458ab71becbe61547873ebb to your computer and use it in GitHub Desktop.
JavaScript Try-Catch Stackoverflow
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