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

Better error message when deserializing bad root.json #251

Open
brandon-leapyear opened this issue Mar 24, 2021 · 0 comments
Open

Better error message when deserializing bad root.json #251

brandon-leapyear opened this issue Mar 24, 2021 · 0 comments

Comments

@brandon-leapyear
Copy link
Contributor

We're trying to configure stack to use a private Hackage instance, and we kept seeing the message:

Could not deserialize <repo>/root.json: Schema error: Expected field "signed"

Adding trace statements and building stack manually, we were able to find out that it was attempting to parse

{
  "errors": [
    {
      "status": 401,
      "message": "Authentication is required"
    }
  ]
}

It would be nice if the message could show, in some way, the JSON file that failed to be parsed

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