Don't quit browser when get fatal js error.

This commit is contained in:
Cheng Zhao 2013-04-13 23:38:29 +08:00
parent c6e62dcffd
commit 3c96007131

View file

@ -1 +1,7 @@
console.log(process.argv);
process.on('uncaughtException', function(error) {
console.error('uncaughtException:');
if (error.stack)
console.error(error.stack);
else
console.error(error.name + ': ' + error.message);
});