diff --git a/lib/main.js b/lib/main.js index 9db5e8a..ec91b6b 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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, {