File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 10571057 }
10581058
10591059 function handleResponse ( jqXhr , err ) {
1060- $scope . response . status = jqXhr ? jqXhr . status : err ? err . status : 0 ;
1060+ $scope . response . status = jqXhr ? jqXhr . status : err ? ( err . status ? err . status : err . message ) : 0 ;
10611061
10621062 if ( jqXhr ) {
10631063 $scope . response . headers = parseHeaders ( jqXhr . getAllResponseHeaders ( ) ) ;
Original file line number Diff line number Diff line change 7878 }
7979
8080 function handleResponse ( jqXhr , err ) {
81- $scope . response . status = jqXhr ? jqXhr . status : err ? err . status : 0 ;
81+ $scope . response . status = jqXhr ? jqXhr . status : err ? ( err . status ? err . status : err . message ) : 0 ;
8282
8383 if ( jqXhr ) {
8484 $scope . response . headers = parseHeaders ( jqXhr . getAllResponseHeaders ( ) ) ;
You can’t perform that action at this time.
0 commit comments