diff options
author | Chocobozzz <me@florianbigard.com> | 2023-02-17 10:11:15 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-02-17 10:11:15 +0100 |
commit | 03902b00994a03e333acd7662d26782e3dc52e07 (patch) | |
tree | 69c94f25131bde22de4af2ffb7453d7a39008165 /client/src/app | |
parent | f8deb7982c07b967b3e1b3636f156e4c246e6da1 (diff) | |
download | PeerTube-03902b00994a03e333acd7662d26782e3dc52e07.tar.gz PeerTube-03902b00994a03e333acd7662d26782e3dc52e07.tar.zst PeerTube-03902b00994a03e333acd7662d26782e3dc52e07.zip |
Correctly handle 502 errors
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/core/rest/rest-extractor.service.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/core/rest/rest-extractor.service.ts b/client/src/app/core/rest/rest-extractor.service.ts index daed7f178..c6c1e183f 100644 --- a/client/src/app/core/rest/rest-extractor.service.ts +++ b/client/src/app/core/rest/rest-extractor.service.ts | |||
@@ -133,6 +133,10 @@ export class RestExtractor { | |||
133 | return $localize`Server error. Please retry later.` | 133 | return $localize`Server error. Please retry later.` |
134 | } | 134 | } |
135 | 135 | ||
136 | if (err.status === HttpStatusCode.BAD_GATEWAY_502) { | ||
137 | return $localize`Server is unavailable. Please retry later.` | ||
138 | } | ||
139 | |||
136 | return $localize`Unknown server error` | 140 | return $localize`Unknown server error` |
137 | } | 141 | } |
138 | } | 142 | } |