mapErrorToCause

Maps the error of the result, if present, to its cause, or self if cause is not available