How can i fix the bad error message