diff --git a/lib/regular-update.js b/lib/regular-update.js index 528615fb527637588185f26a4bf8b988d030bd4f..ce7916d98d44724addd56a36c0f744e7830ced3d 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