mirror of
https://github.com/electron/electron.git
synced 2026-01-11 00:18:02 -05:00
Don't quit browser when get fatal js error.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user