FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Print actual error on 400 Bad Request · Issue #280 · reinfer/cli · GitHub

/ cli Public

Print actual error on 400 Bad Request #280

Description

In case when a request fails due to json validation, the response contains a path field:

400 Bad Request
{"status": "error", "message": "\'\' is too short", "path": "$.comments[0].messages[0].from"}

CLI currently only prints the message, which is uninformative on its own and does not help a casual user fix their request. It should also print the path if it's available (fine to assume that it's only available on 400 Bad Request responses).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL