1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Improve download exception handling

This commit is contained in:
sunnylqm 2021-11-04 16:39:50 +08:00
parent 0aa063c584
commit 96a81cc36d

View File

@ -227,7 +227,7 @@ export async function downloadUpdate(options, eventListeners) {
} catch (e) { } catch (e) {
progressHandler && progressHandler.remove(); progressHandler && progressHandler.remove();
report(options.hash, 'error'); report(options.hash, 'error');
return; throw e;
} }
} }
} else if (options.pdiffUrl) { } else if (options.pdiffUrl) {
@ -240,7 +240,7 @@ export async function downloadUpdate(options, eventListeners) {
} catch (e) { } catch (e) {
progressHandler && progressHandler.remove(); progressHandler && progressHandler.remove();
report(options.hash, 'error'); report(options.hash, 'error');
return; throw e;
} }
} }
setLocalHashInfo(options.hash, { setLocalHashInfo(options.hash, {