added more information to request errors
This commit is contained in:
parent
081b2a23de
commit
6acb027b3a
@ -950,9 +950,12 @@
|
||||
|
||||
if (data.error) {
|
||||
err = new Error(data.error.message || data.error_description || JSON.stringify(data.error));
|
||||
Object.assign(err, data.error);
|
||||
}
|
||||
if (err) {
|
||||
err.result = data;
|
||||
err._request = xhr;
|
||||
err.status = xhr.status;
|
||||
err.data = data;
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user