errors record reason for failure