Updater: Log additional information from ShipIt
This commit is contained in:
parent
1032249b82
commit
c186517e42
2 changed files with 8 additions and 3 deletions
|
@ -201,8 +201,10 @@ async function handToAutoUpdate(
|
|||
try {
|
||||
serverUrl = getServerUrl(server);
|
||||
|
||||
autoUpdater.on('error', (error: Error) => {
|
||||
logger.error('autoUpdater: error', getPrintableError(error));
|
||||
autoUpdater.on('error', (...args) => {
|
||||
logger.error('autoUpdater: error', ...args.map(getPrintableError));
|
||||
|
||||
const [error] = args;
|
||||
reject(error);
|
||||
});
|
||||
autoUpdater.on('update-downloaded', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue