Move ErrorList to util

Part of ip-per-service
Great.  Merge away if you're happy :)

On Mon, Oct 6, 2014 at 4:57 PM, Daniel Smith <notifications@github.com>
wrote:

> In pkg/util/error_list.go:
>
> > +	if len(list) == 0 {
> > +		return ""
> > +	}
> > +	if len(list) == 1 {
> > +		return list[0].Error()
> > +	}
> > +	result := fmt.Sprintf("[%s", list[0].Error())
> > +	for i := 1; i < len(list); i++ {
> > +		result += fmt.Sprintf(", %s", list[i].Error())
> > +	}
> > +	result += "]"
> > +	return result
> > +}
> > +
> > +// ToError converts an ErrorList into a "normal" error, or nil if the list is empty.
> > +func (list ErrorList) ToError() error {
>
> Sure, I'll file a bug. That's why I said it was just a nit.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/1593/files#r18493632>
> .
>