Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message when library metadata request fails #601

Open
jimmylewis opened this issue Sep 14, 2020 · 0 comments
Open

Improve error message when library metadata request fails #601

jimmylewis opened this issue Sep 14, 2020 · 0 comments

Comments

@jimmylewis
Copy link
Contributor

This issue is dedicated to one of the follow-up items in this comment: #370 (comment)

Functional impact

Error is imprecise about the cause of failure and may lead to user confusion

Minimal repro steps

Happens randomly, no reliable repro
When downloading a library for the first time, if one of the metadata requests fails we get a generic "Could not resolve the library foo@1.2.3".

Expected result

Better indicate the cause of failure or the portion which failed, some ideas:

  • Failed to retrieve file metadata for foo@1.2.3
  • Failed to retrieve library metadata for foo@1.2.3. Received HTTP response 418.
  • Unrecognized library name "foo"
  • Unrecognized library version for "foo@1.2.3"

Actual result

All issues resolving the library and its metadata get a "Could not resolve the library foo@1.2.3" message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant