improve error messages
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user