tusd/pkg/s3store/multi_error.go

14 lines
222 B
Go
Raw Permalink Normal View History

package s3store
import (
"errors"
)
func newMultiError(errs []error) error {
2016-09-27 20:10:16 +00:00
message := "Multiple errors occurred:\n"
for _, err := range errs {
message += "\t" + err.Error() + "\n"
}
return errors.New(message)
}