mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-15 19:49:47 +02:00
Add uncaught exception backtrace logging
This commit is contained in:
parent
6484bf9e94
commit
c8b40c2948
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ const TRAY_ICON = path.join(__dirname, '../resources/' + TRAY_FILENAME);
|
|||
const APP_ICON = path.join(__dirname, '../resources/console.png');
|
||||
|
||||
// print out uncaught exceptions in the console
|
||||
process.on('uncaughtException', console.log.bind(console));
|
||||
process.on('uncaughtException', function(err) {
|
||||
console.error(err);
|
||||
console.error(err.stack);
|
||||
});
|
||||
|
||||
var shouldQuit = app.makeSingleInstance(function(commandLine, workingDirectory) {
|
||||
// Someone tried to run a second instance, focus the window (if there is one)
|
||||
|
|
Loading…
Reference in a new issue