Skip to content

Instantly share code, notes, and snippets.

@mlrawlings
Created July 11, 2012 20:14
Show Gist options
  • Save mlrawlings/3093003 to your computer and use it in GitHub Desktop.
Save mlrawlings/3093003 to your computer and use it in GitHub Desktop.
SS Catch-all
// Log uncaught exceptions
process.on('uncaughtException', function(err) {
console.log(err.message.red);
if(err.stack) console.log(err.stack.split("\n").splice(1).join("\n"))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment