diff --git a/lib/regular-update.js b/lib/regular-update.js index 528615fb52..ce7916d98d 100644 --- a/lib/regular-update.js +++ b/lib/regular-update.js @@ -54,9 +54,11 @@ function regularUpdate( } if (res.statusCode < 200 || res.statusCode >= 300) { - throw new InvalidResponse({ - prettyMessage: 'intermediate resource inaccessible', - }) + cb( + new InvalidResponse({ + prettyMessage: 'intermediate resource inaccessible', + }) + ) } let reqData