Improve download exception handling
This commit is contained in:
parent
0aa063c584
commit
96a81cc36d
@ -227,7 +227,7 @@ export async function downloadUpdate(options, eventListeners) {
|
||||
} catch (e) {
|
||||
progressHandler && progressHandler.remove();
|
||||
report(options.hash, 'error');
|
||||
return;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
} else if (options.pdiffUrl) {
|
||||
@ -240,7 +240,7 @@ export async function downloadUpdate(options, eventListeners) {
|
||||
} catch (e) {
|
||||
progressHandler && progressHandler.remove();
|
||||
report(options.hash, 'error');
|
||||
return;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
setLocalHashInfo(options.hash, {
|
||||
|
Loading…
Reference in New Issue
Block a user