diff --git a/src/app/app.api-http.ts b/src/app/app.api-http.ts index 59c5343..59caf04 100644 --- a/src/app/app.api-http.ts +++ b/src/app/app.api-http.ts @@ -83,8 +83,8 @@ export class ApiHttp extends Http { intercept(observable: Observable): Observable { return observable - .map(this.handleResponse) - .catch(this.handleError); + .map(res => this.handleResponse(res)) + .catch((err, source) => this.handleError(err, source)); } private handleResponse(res: Response): Response {