tusd/s3store/multi_error.go

14 lines
222 B
Go
Raw 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)
}