mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 16:35:45 +00:00
remote podman v1 and replace with podman v2. Signed-off-by: Brent Baude <bbaude@redhat.com>
16 lines
233 B
Go
16 lines
233 B
Go
package utils
|
|
|
|
import "fmt"
|
|
|
|
type OutputErrors []error
|
|
|
|
func (o OutputErrors) PrintErrors() (lastError error) {
|
|
if len(o) == 0 {
|
|
return
|
|
}
|
|
lastError = o[len(o)-1]
|
|
for e := 0; e < len(o)-1; e++ {
|
|
fmt.Println(o[e])
|
|
}
|
|
return
|
|
}
|