Error handling when loading the dashboard