Correctly handle 502 errors

pull/5615/head
Chocobozzz 2023-02-17 10:11:15 +01:00
parent f8deb7982c
commit 03902b0099
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 0 deletions

View File

@ -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`
}
}