Skip to content

Instantly share code, notes, and snippets.

@ralphholzmann
Created January 16, 2014 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralphholzmann/8462433 to your computer and use it in GitHub Desktop.
Save ralphholzmann/8462433 to your computer and use it in GitHub Desktop.
something.then(function() {
throw new Error(“lel”);
}, function(error) {
// lol you think I’ll catch, but I wont
}).then(null, function(error) {
// Actually gets caught here.
console.error(error); // "lel"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment