mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-07 23:45:13 +08:00
Improve download exception handling
This commit is contained in:
@@ -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, {
|
||||
|
Reference in New Issue
Block a user