Skip to content

Instantly share code, notes, and snippets.

@heapwolf heapwolf/17.js
Created Aug 6, 2012

Embed
What would you like to do?
emitters/uncaughtexception
process.on('uncaughtException', function(err) {
console.error('An uncaughtException occurred:', err);
// do some cleanup
process.exit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.