cli: remove unused Errors type

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-12-14 11:30:54 +01:00
parent 44a4ffd96f
commit 3d58b43efe
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -2,26 +2,8 @@ package cli // import "github.com/docker/docker/cli"
import (
"fmt"
"strings"
)
// Errors is a list of errors.
// Useful in a loop if you don't want to return the error right away and you want to display after the loop,
// all the errors that happened during the loop.
type Errors []error
func (errList Errors) Error() string {
if len(errList) < 1 {
return ""
}
out := make([]string, len(errList))
for i := range errList {
out[i] = errList[i].Error()
}
return strings.Join(out, ", ")
}
// StatusError reports an unsuccessful exit by a command.
type StatusError struct {
Status string