Skip to content

Commit

Permalink
fix: Change error message thrown with redirect mode set to error (#653)
Browse files Browse the repository at this point in the history
The original error message does not provide enough information about what went wrong. It simply states a configuration setting.
  • Loading branch information
uwu-ara authored and Richienb committed Oct 10, 2019
1 parent 244e6f6 commit 1e99050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -125,7 +125,7 @@ export default function fetch(url, opts) {
// HTTP fetch step 5.5
switch (request.redirect) {
case 'error':
reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect'));
reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
finalize();
return;
case 'manual':
Expand Down

0 comments on commit 1e99050

Please sign in to comment.