Propperly set record as error.