def why

ezx@1.11.0.0 · src/lock/plan.bend:755

import ezx@1.11.0.0/src/lock/plan.bend as Plan
import Base

755# what a command that ends is said to have ended on: nothing when it
756# succeeded, and the reason when it refused
757def why(outcome: Outcome) -> String:
758  match outcome:
759    case Success{}:
760      ""
761    case Refused{why}:
762      why

Uses (2)

Used by (3)