tusd/s3store/multi_error.go

14 lines
221 B
Go
Raw Normal View History

package s3store
import (
"errors"
)
func newMultiError(errs []error) error {
message := "Multiple errors occured:\n"
for _, err := range errs {
message += "\t" + err.Error() + "\n"
}
return errors.New(message)
}