From 03902b00994a03e333acd7662d26782e3dc52e07 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Feb 2023 10:11:15 +0100 Subject: Correctly handle 502 errors --- client/src/app/core/rest/rest-extractor.service.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src') 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 { return $localize`Server error. Please retry later.` } + if (err.status === HttpStatusCode.BAD_GATEWAY_502) { + return $localize`Server is unavailable. Please retry later.` + } + return $localize`Unknown server error` } } -- cgit v1.2.3