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

API Errors don't include the original response #140

Open
ebernhardson opened this issue Nov 16, 2017 · 0 comments
Open

API Errors don't include the original response #140

ebernhardson opened this issue Nov 16, 2017 · 0 comments
Milestone

Comments

@ebernhardson
Copy link

ebernhardson commented Nov 16, 2017

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') { ... }

@macbre macbre added this to the v0.13 milestone Nov 17, 2017
@macbre macbre modified the milestones: v0.13, v0.14 Apr 12, 2020
@macbre macbre modified the milestones: v0.14, v0.15 Jan 22, 2021
@macbre macbre modified the milestones: v0.15, v1.0 Sep 24, 2021
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

2 participants