Making vote give a useful error message if the syntax is incorrect