package multierror

import (
	

	
)
Prefix is a helper function that will prefix some text to the given error. If the error is a multierror.Error, then it will be prefixed to each wrapped error. This is useful to use when appending multiple multierrors together in order to give better scoping.
func ( error,  string) error {
	if  == nil {
		return nil
	}

	 := fmt.Sprintf("%s {{err}}", )
	switch err := .(type) {
Typed nils can reach here, so initialize if we are nil
		if  == nil {
			 = new(Error)
		}
Wrap each of the errors
		for ,  := range .Errors {
			.Errors[] = errwrap.Wrapf(, )
		}

		return 
	default:
		return errwrap.Wrapf(, )
	}