recording the operation in an error result