def first_error
import bendvy-ecs-core@0.1.0.3/relation_reorder_core.bend as RelationReorderCoreimport Base
import relation_types.bend as T
30def first_error(current: Maybe<&2,T.Error>,next: Unit -> Maybe<&2,T.Error>) -> Maybe<&2,T.Error>:
31 match current:
32 case Some{e}: Some{e}
33 case None{}: next(Unit{})