display error in case of error