def fetch.fail.of

bend-kit-http@0.38.5.0 · http.bend:4921

import bend-kit-http@0.38.5.0/http.bend as Http
import Base

4921def fetch.fail.of(r: Result<&1, &1, Err, Res>) -> Result<&1, &1, Err, Stream>:
4922  match r:
4923    case Fail{e}:
4924      Fail{e}
4925    case Done{res}:
4926      Fail{ErrBad{}}

Uses (4)

Used by (1)