aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-15 12:26:02 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-15 12:26:02 +0200
commitc9d6d155c397d0da0cb2d50064264fc1716f0501 (patch)
treec9f888f1d294f2097f43ffd9fc6875bdf1565007 /client/src/app/shared
parentb60e5f38daf77e720a27aa86d3b482c58906a03a (diff)
downloadPeerTube-c9d6d155c397d0da0cb2d50064264fc1716f0501.tar.gz
PeerTube-c9d6d155c397d0da0cb2d50064264fc1716f0501.tar.zst
PeerTube-c9d6d155c397d0da0cb2d50064264fc1716f0501.zip
Fix login when there is an error
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/rest/rest-extractor.service.ts4
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)