mirror of https://github.com/Chocobozzz/PeerTube
Correctly handle 502 errors
parent
f8deb7982c
commit
03902b0099
|
@ -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`
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue