Provide a more descriptive error on fetching "file" scheme
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 880
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 68
Description
This would solve...
The current error is cryptic, to say the least:
The implementation should look like...
makeNetworkError('Failed to fetch the "file" URL scheme: not implemented')
Additional context
There's an existing better error for an unsupported URL schemes, like about:
I'd still like to have it mention "fetch" at least somewhere so it's clear where the issue originates from.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect lib/web/fetch/index.js at the referenced file-scheme error and compare it with the existing unsupported-scheme error around the other referenced location. Update the file-scheme message to identify fetch and state that the scheme is not implemented, then verify the resulting error wording.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100