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

throw xhr.status+' ('+xhr.statusText+')'; is not enough #2

Open
yubhbh opened this issue Nov 18, 2017 · 1 comment
Open

throw xhr.status+' ('+xhr.statusText+')'; is not enough #2

yubhbh opened this issue Nov 18, 2017 · 1 comment

Comments

@yubhbh
Copy link

yubhbh commented Nov 18, 2017

hi, Lobos,
in src/qwest.js, line 264:
throw xhr.status+' ('+xhr.statusText+')';

throw info is not enough, we need more info from xhr:

image

throw xhr is OK?

@Lobos
Copy link
Owner

Lobos commented Nov 19, 2017

呃,catch 的第三个参数是xhr,试试看能不能用

.catch(function (error, response, xhr) {
        console.log(error);
    });

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