def wire.why.of

emerging-ezhttp@0.21.0.0 · src/wirespec.bend:52

import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Wirespec
import Base

52# what a failed exchange is reported as: a timeout is marked, any other
53# failure's reason is kept as it is
54def wire.why.of(why: String, late: Bool) -> String:
55  match late:
56    case True{}:
57      "timed out: " ++ why
58    case False{}:
59      why

Uses (3)

Used by (1)