record the error attribute