def wire.why.of
import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Wirespecimport 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