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

Allow queryApi function to return Error Object #9

Closed
dantolini opened this issue Aug 10, 2018 · 1 comment
Closed

Allow queryApi function to return Error Object #9

dantolini opened this issue Aug 10, 2018 · 1 comment

Comments

@dantolini
Copy link
Contributor

The Scryfall api provides nice, human readable error messages (https://scryfall.com/docs/api/errors), but these are being swallowed by queryApi, which will return { data: [] } on an error.
By allowing the error object to be returned (or at least retrieved), a program can report to the user problems with the query.

@ChiriVulpes
Copy link
Owner

Thanks for the report! This is implemented as of v1.3.1

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

No branches or pull requests

2 participants