def wire.fail.resolve
import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Wirespecimport Base
334# a resolve's failure: bend-kit-dns reports a name with no address as
335# ENOENT, whose name would read as a missing file, so only the host is named
336def wire.fail.resolve(host: String, +n: U32, none: Bool) -> String:
337 match none:
338 case True{}:
339 "6\ncould not resolve " ++ host
340 case False{}:
341 "6\ncould not resolve " ++ host ++ ": " ++ wire.cause(n)