depot/packages/networking/ipfs-cluster/api/ipfsproxy/util.go

20 lines
300 B
Go
Raw Permalink Normal View History

2022-10-19 23:23:11 +03:00
package ipfsproxy
import (
"strings"
)
// MultiError contains the results of multiple errors.
type multiError struct {
err strings.Builder
}
func (e *multiError) add(err string) {
e.err.WriteString(err)
e.err.WriteString("; ")
}
func (e *multiError) Error() string {
return e.err.String()
}