Skip to content

Support for Server Errors #109

@ghost

Description

I was playing around and found out that error handling is not correct according to the standard.

Server Response (reference) with 422:

{
  "errors": [
    {
      "detail": "field may not be empty",
      "source": {
        "pointer": "/data/attributes/x"
      },
      "status":"422"
    }
  ]
}

Such a server response triggers this line. First of all, I wonder why there is a console.error instead of an accurate logger. And second of all, why does this catch exists at all? Five lines below, there is another catch doing the right thing... Did I get something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions