LLMs-as-Instructors: Learning from Errors Toward Automating Model Improvement