Converts the provided error into a failed Result.
error to propagate.
Result.error carrying the provided error.