diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/rest/rest-extractor.service.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/shared/rest/rest-extractor.service.ts b/client/src/app/shared/rest/rest-extractor.service.ts index 62c600d25..aafc9723e 100644 --- a/client/src/app/shared/rest/rest-extractor.service.ts +++ b/client/src/app/shared/rest/rest-extractor.service.ts | |||
@@ -54,11 +54,13 @@ export class RestExtractor { | |||
54 | 54 | ||
55 | const errorObj = { | 55 | const errorObj = { |
56 | message: errorMessage, | 56 | message: errorMessage, |
57 | status: undefined | 57 | status: undefined, |
58 | body: undefined | ||
58 | } | 59 | } |
59 | 60 | ||
60 | if (err.status) { | 61 | if (err.status) { |
61 | errorObj.status = err.status | 62 | errorObj.status = err.status |
63 | errorObj.body = err.error | ||
62 | } | 64 | } |
63 | 65 | ||
64 | return Observable.throw(errorObj) | 66 | return Observable.throw(errorObj) |