improve error messages

This commit is contained in:
2023-03-02 17:56:23 +01:00
parent b3509e062b
commit a8cd94f47e
3 changed files with 14 additions and 5 deletions

View File

@@ -41,8 +41,10 @@ export class DashboardComponent implements OnInit {
'error': (error: HttpErrorResponse) =>{
if (error.status == 404) {
this.error = "Not Found";
}else if (error.status == 504) { // gateway timeout
this.error = "Server Unreachable";
}else{
this.error = "Failed to load dashboard.";
this.error = "Failed to load dashboard";
}
}
});