Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Commit 0b80086

Browse files
committed
better error messages for failed XHRs
1 parent 5f8a785 commit 0b80086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blissful.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ angular.module('blissful', ['ngResource'])
1414
} else if (err.headers('X-Bliss-Error')) {
1515
alert('Error:\n' + err.data);
1616
} else {
17-
alert(err.status + ' <- ' + err.method + ' ' + err.url + '\n' +
18-
err.data);
17+
alert(err.status + ' <- ' + err.config.method + ' ' + err.config.url +
18+
'\n' + err.data);
1919
// TODO: address problems such as OPTIONS pre-flight request failures
2020
alert('FIXME: see console.log for details');
2121
console.log('err', err);

0 commit comments

Comments
 (0)