Skip to content

Commit a5493aa

Browse files
committed
Resolved #7: Send ABP error ro error callback on Http requests.
1 parent bc89446 commit a5493aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/abpHttp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ export class AbpHttpConfiguration {
198198
var ajaxResponse = this.getAbpAjaxResponseOrNull(error);
199199
if (ajaxResponse != null) {
200200
this.handleAbpResponse(error, ajaxResponse);
201+
return Observable.throw(ajaxResponse.error);
201202
} else {
202203
this.handleNonAbpErrorResponse(error);
204+
return Observable.throw('HTTP error: ' + error.status + ', ' + error.statusText);
203205
}
204-
205-
return Observable.throw('HTTP error: ' + error.status + ', ' + error.statusText);
206206
}
207207
}
208208

0 commit comments

Comments
 (0)