Skip to content

API Errors don't include the original response #140

@ebernhardson

Description

@ebernhardson

When getting an error from the api we only get a string, such as: Error returned by API: The page you specified doesn't exist.
I would find it more convenient for error handling to give back the original API response, so we can do tests like if (response.code === 'missingtitle') { ... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions