Fix error handling during piping in updater
This commit is contained in:
parent
34eb6a541d
commit
fe9cdfbed9
4 changed files with 77 additions and 21 deletions
|
@ -484,12 +484,12 @@ export abstract class Updater {
|
|||
);
|
||||
|
||||
try {
|
||||
await downloadDifferentialData(
|
||||
targetUpdatePath,
|
||||
differentialData,
|
||||
updateOnProgress ? this.throttledSendDownloadingUpdate : undefined,
|
||||
this.logger
|
||||
);
|
||||
await downloadDifferentialData(targetUpdatePath, differentialData, {
|
||||
statusCallback: updateOnProgress
|
||||
? this.throttledSendDownloadingUpdate
|
||||
: undefined,
|
||||
logger: this.logger,
|
||||
});
|
||||
|
||||
gotUpdate = true;
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue