func sumErrors(errs []error) error {
	if len(errs) == 0 {
		return nil
	}

	var errStrings []string
	for _, err := range errs {
		errStrings = append(errStrings, err.Error())
	}

	sort.Strings(errStrings)
	errStrings = utils.UniqueStrings(errStrings)

	return fmt.Errorf("%s", strings.Join(errStrings, ", "))
}
// sumErrors simply sorts the errors and joins them with commas
sumErrors simply sorts the errors and joins them with commas
// sumErrors simply sorts the errors and joins them with commas
func sumErrors(errs []error) error {
	if len(errs) == 0 {
		return nil
	}
	var errStrings []string
	for _, err := range errs {
		errStrings = append(errStrings, err.Error())
	}
	sort.Strings(errStrings)
	errStrings = utils.UniqueStrings(errStrings)
	return fmt.Errorf("%s", strings.Join(errStrings, ", "))
}
func sumErrors ( errs [ ] error ) error { if len ( errs ) == 0 { return nil } var errStrings [ ] string for _ , err := range errs { errStrings = append ( errStrings , err . Error ( ) ) } sort . Strings ( errStrings ) errStrings = utils . UniqueStrings ( errStrings ) return fmt . Errorf ( " " , strings . Join ( errStrings , " " ) ) }
sumErrors simply sorts the errors and joins them with commas
sumErrors simply sorts the errors and joins them with commas