From db400f447a9f7aae1c56fa25396e93069744483f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 15 May 2018 11:55:51 +0200 Subject: Upgrade to rxjs 6 --- client/src/app/shared/rest/rest-extractor.service.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'client/src/app/shared/rest') diff --git a/client/src/app/shared/rest/rest-extractor.service.ts b/client/src/app/shared/rest/rest-extractor.service.ts index 8ed24c727..4cfe28536 100644 --- a/client/src/app/shared/rest/rest-extractor.service.ts +++ b/client/src/app/shared/rest/rest-extractor.service.ts @@ -1,7 +1,6 @@ -import { HttpErrorResponse } from '@angular/common/http' +import { of, throwError as observableThrowError } from 'rxjs' import { Injectable } from '@angular/core' import { dateToHuman } from '@app/shared/misc/utils' -import { Observable } from 'rxjs/Observable' import { ResultList } from '../../../../../shared' @Injectable() @@ -86,6 +85,8 @@ export class RestExtractor { errorObj.body = err.error } - return Observable.throw(errorObj) + observableThrowError(errorObj) + + return of(undefined) } } -- cgit v1.2.3