Improved error logging

This commit is contained in:
Leo Lamprecht 2017-08-15 21:38:31 +02:00 committed by GitHub
parent 4ba4fe4f62
commit 68250d80cd

View file

@ -77,5 +77,8 @@ Also make sure that errors are
for logging them to `stderr`:
```js
autoUpdater.on('error', console.error)
autoUpdater.on('error', message => {
console.error('There was a problem updating the application')
console.error(message)
})
```