Skip to content

Instantly share code, notes, and snippets.

@jfonte
Created February 7, 2016 16:40
Show Gist options
  • Save jfonte/af785b031bd17fd1a4a4 to your computer and use it in GitHub Desktop.
Save jfonte/af785b031bd17fd1a4a4 to your computer and use it in GitHub Desktop.
right way to process JS exceptions
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