MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / joinErrors

Method joinErrors

logger/handler.go:201–209  ·  view source on GitHub ↗
(errs []error)

Source from the content-addressed store, hash-verified

199}
200
201func (h *Handler) joinErrors(errs []error) error {
202 if len(errs) == 0 {
203 return nil
204 }
205 if len(errs) == 1 {
206 return errs[0]
207 }
208 return errors.Join(errs...)
209}
210
211// writeError writes a logging error message to STDERR.
212func (h *Handler) writeError(err error) {

Callers 1

HandleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected