fix: Change error message thrown with redirect mode set to error (#653)

The original error message does not provide enough information about what went wrong. It simply states a configuration setting.
This commit is contained in:
Ramit Mittal 2019-10-11 01:56:58 +05:30 committed by Richie Bendall
parent 244e6f63d4
commit 1e99050f94
1 changed files with 1 additions and 1 deletions

View File

@ -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':