Improved error logging
This commit is contained in:
parent
4ba4fe4f62
commit
68250d80cd
1 changed files with 4 additions and 1 deletions
|
@ -77,5 +77,8 @@ Also make sure that errors are
|
||||||
for logging them to `stderr`:
|
for logging them to `stderr`:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
autoUpdater.on('error', console.error)
|
autoUpdater.on('error', message => {
|
||||||
|
console.error('There was a problem updating the application')
|
||||||
|
console.error(message)
|
||||||
|
})
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue