summaryrefslogtreecommitdiff
path: root/cmd/podman/system/events.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-11-17 18:45:36 +0100
committerGitHub <noreply@github.com>2020-11-17 18:45:36 +0100
commit12de330094fdcd2e2fd0d10d5e5ddd962193de8b (patch)
treefb249f58fde42bc575825b32474f09c111553603 /cmd/podman/system/events.go
parent42ec4cf87f8d0a84301594a4fc5cf05f0a10bd7f (diff)
parent389dcb5c29d926e89d5d4c0b26ebf434c2fe5dcb (diff)
downloadpodman-12de330094fdcd2e2fd0d10d5e5ddd962193de8b.tar.gz
podman-12de330094fdcd2e2fd0d10d5e5ddd962193de8b.tar.bz2
podman-12de330094fdcd2e2fd0d10d5e5ddd962193de8b.zip
Merge pull request #8370 from rhatdan/wrap
Remove some more excessive wrapping and stuttering
Diffstat (limited to 'cmd/podman/system/events.go')
-rw-r--r--cmd/podman/system/events.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/podman/system/events.go b/cmd/podman/system/events.go
index 224ef89f3..d2aefab67 100644
--- a/cmd/podman/system/events.go
+++ b/cmd/podman/system/events.go
@@ -13,7 +13,6 @@ import (
"github.com/containers/podman/v2/cmd/podman/validate"
"github.com/containers/podman/v2/libpod/events"
"github.com/containers/podman/v2/pkg/domain/entities"
- "github.com/pkg/errors"
"github.com/spf13/cobra"
)
@@ -104,7 +103,7 @@ func eventsCmd(cmd *cobra.Command, _ []string) error {
case doJSON:
jsonStr, err := event.ToJSONString()
if err != nil {
- return errors.Wrapf(err, "unable to format json")
+ return err
}
fmt.Println(jsonStr)
case cmd.Flags().Changed("format"):