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