add error to procedure.