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

On rejection Error.message is empty if statusText is empty #227

Open
gillchristian opened this issue Aug 7, 2019 · 0 comments
Open

On rejection Error.message is empty if statusText is empty #227

gillchristian opened this issue Aug 7, 2019 · 0 comments
Labels
Milestone

Comments

@gillchristian
Copy link
Member

Found out about it while investigating #226

const err = new Error(response.statusText);

We should have a default error message.

Also, since the Error has its own .toString debugging of the response is not ideal, all the properties are not displayed. We could think about our own .toString for the ResponseError that we are going to use in v2

@gillchristian gillchristian added this to the 2.0 milestone Aug 7, 2019
@gillchristian gillchristian mentioned this issue Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant