Don't quit browser when get fatal js error.
This commit is contained in:
parent
c6e62dcffd
commit
3c96007131
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||||
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue