summaryrefslogtreecommitdiff
path: root/cmd/podman/images
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-21 07:54:39 -0400
committerGitHub <noreply@github.com>2020-04-21 07:54:39 -0400
commit08823e738381a64952580e08188f6edc7bb9e3f0 (patch)
tree511f67b86baa3748e3e6551b48aeb04958504718 /cmd/podman/images
parent47d99fb6253238e7603fc96d5b9bbb14f1e8c948 (diff)
parent75fdb753ddb47d51df1f9781d5db0748edd738da (diff)
downloadpodman-08823e738381a64952580e08188f6edc7bb9e3f0.tar.gz
podman-08823e738381a64952580e08188f6edc7bb9e3f0.tar.bz2
podman-08823e738381a64952580e08188f6edc7bb9e3f0.zip
Merge pull request #5913 from rhatdan/v2
More fixes for podman create tests
Diffstat (limited to 'cmd/podman/images')
-rw-r--r--cmd/podman/images/inspect.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/podman/images/inspect.go b/cmd/podman/images/inspect.go
index 11bef02ba..3190ab725 100644
--- a/cmd/podman/images/inspect.go
+++ b/cmd/podman/images/inspect.go
@@ -84,10 +84,14 @@ func inspect(cmd *cobra.Command, args []string) error {
}
}
+ var lastErr error
for id, e := range results.Errors {
- fmt.Fprintf(os.Stderr, "%s: %s\n", id, e.Error())
+ if lastErr != nil {
+ fmt.Fprintf(os.Stderr, "%s: %s\n", id, lastErr.Error())
+ }
+ lastErr = e
}
- return nil
+ return lastErr
}
func inspectFormat(row string) string {