replace a fast_variant with error_or