Made generate_help reuse the existing get_error_messages method to fetch error in one place