Error, communication and learning in ant societies