1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-07 14:05:17 +08:00
Code Issues 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) {
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, {