4 ms·
Wouldn't a simple uncaughtException handler be sufficient to prevent most crashes? process.on('uncaughtException', function (err) { // log it });
by doomslice 14y ago
Wouldn't a simple uncaughtException handler be sufficient to prevent most crashes?
process.on('uncaughtException', function (err) {
// log it
});
- latchkey 14y agoFrom the documentation: "Don't use it, use domains instead. If you do use it, restart your application after every unhandled exception!" http://nodejs.org/api/process.html#process_event_uncaughtexception http://nodejs.org/api/process.html#process_event_uncaughtexc...