Function for displaying errors, not done