MCPcopy Create free account
hub / github.com/containers/image / makeErrorList

Function makeErrorList

docker/distribution_error.go:111–116  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

109}
110
111func makeErrorList(err error) []error {
112 if errL, ok := err.(errcode.Errors); ok {
113 return []error(errL)
114 }
115 return []error{err}
116}
117
118func mergeErrors(err1, err2 error) error {
119 return errcode.Errors(append(slices.Clone(makeErrorList(err1)), makeErrorList(err2)...))

Callers 1

mergeErrorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…