errorOrRaise

Returns the Failure error, or short-circuits the surrounding RaiseScope with the Success value.

Equivalent to flattening and swapping from the inside: the inner success propagates outward as a raised error. This does not throw — it uses RaiseScope.shortCircuit to unwind.

See also