diff options
Diffstat (limited to 'client/src/app/shared/rest')
-rw-r--r-- | client/src/app/shared/rest/rest-extractor.service.ts | 7 |
1 files changed, 4 insertions, 3 deletions
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 @@ | |||
1 | import { HttpErrorResponse } from '@angular/common/http' | 1 | import { of, throwError as observableThrowError } from 'rxjs' |
2 | import { Injectable } from '@angular/core' | 2 | import { Injectable } from '@angular/core' |
3 | import { dateToHuman } from '@app/shared/misc/utils' | 3 | import { dateToHuman } from '@app/shared/misc/utils' |
4 | import { Observable } from 'rxjs/Observable' | ||
5 | import { ResultList } from '../../../../../shared' | 4 | import { ResultList } from '../../../../../shared' |
6 | 5 | ||
7 | @Injectable() | 6 | @Injectable() |
@@ -86,6 +85,8 @@ export class RestExtractor { | |||
86 | errorObj.body = err.error | 85 | errorObj.body = err.error |
87 | } | 86 | } |
88 | 87 | ||
89 | return Observable.throw(errorObj) | 88 | observableThrowError(errorObj) |
89 | |||
90 | return of(undefined) | ||
90 | } | 91 | } |
91 | } | 92 | } |