mirror of
https://github.com/electron/electron.git
synced 2026-01-10 16:08:06 -05:00
Improved error logging
This commit is contained in:
@@ -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)
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user