Skip to content

Commit 00e28ed

Browse files
author
Brendan Robert
committed
If loop manages to exit with no result, throw error
1 parent a6b400d commit 00e28ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ module.exports = async function (url, options) {
207207
}
208208
retryOptions.retryInitialDelay *= retryOptions.retryBackoff; // update retry interval
209209
}
210+
reject(new FetchError(`network timeout at ${url}`, 'request-timeout'));
210211
};
211212
wrappedFetch();
212213
});

0 commit comments

Comments
 (0)