diff --git a/browser/atom/atom.js b/browser/atom/atom.js index ab74fd7b79..94aa6489e1 100644 --- a/browser/atom/atom.js +++ b/browser/atom/atom.js @@ -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); +});