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

Proper error reporting #5

Open
zxol opened this issue Jul 19, 2018 · 0 comments
Open

Proper error reporting #5

zxol opened this issue Jul 19, 2018 · 0 comments
Assignees

Comments

@zxol
Copy link
Owner

zxol commented Jul 19, 2018

Currently, the library does not have adequate error reporting.

When I initially wrote this library, it was part of a project that used a simple null check to essentially ignore errors. Quite daft, I know. :/

So I think I will need to make some serious changes to the API. I will change it to return a rejected promise with a JS Error object. It will contain either a wrapper level error (i.e. a missing argument) or a error response from airbnb (for example, "listing not found", or "you must be authorized to do that")

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

1 participant