Skip to content

Commit 9012cdc

Browse files
committed
Make catch return Observable.throw(error)
1 parent 0287a00 commit 9012cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/http-interceptor.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class HttpInterceptorService extends Http {
4848
return result;
4949
})
5050
.catch(error => {
51-
return error;
51+
return Observable.throw(error);
5252
})
5353
.finally(() => {
5454
this._pendingRequests--;

0 commit comments

Comments
 (0)