Skip to content

Instantly share code, notes, and snippets.

View mlrawlings's full-sized avatar

Michael Rawlings mlrawlings

View GitHub Profile
@mlrawlings
mlrawlings / gist:3093003
Created July 11, 2012 20:14
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"))
});