Learn to Code by Learning Errors