MCPcopy
hub / github.com/smallstep/cli / readError

Function readError

utils/cautils/bootstrap.go:348–355  ·  view source on GitHub ↗
(r io.ReadCloser)

Source from the content-addressed store, hash-verified

346}
347
348func readError(r io.ReadCloser) error {
349 defer r.Close()
350 apiErr := new(apiError)
351 if err := json.NewDecoder(r).Decode(apiErr); err != nil {
352 return err
353 }
354 return apiErr
355}

Callers 1

BootstrapTeamAuthorityFunction · 0.85

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…