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