Fix error handling during piping in updater

This commit is contained in:
Fedor Indutny 2022-03-02 11:48:07 -08:00 committed by GitHub
parent 34eb6a541d
commit fe9cdfbed9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 77 additions and 21 deletions

View file

@ -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) {