Ajout du bon code d'erreur pour vérifier si le backend est down
This commit is contained in:
parent
d332e8239c
commit
6152e09316
|
@ -121,5 +121,5 @@ export class ErrorHandler {
|
|||
}
|
||||
|
||||
function isServerOfflineError(response: any): boolean {
|
||||
return response.status === 0 && response.statusText === 'Unknown Error'
|
||||
return response.status === 0 || response.status === 502
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue