Skip to content

Better error message when deserializing bad root.json #251

Open
@brandon-leapyear

Description

@brandon-leapyear

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions