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.
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.