summaryrefslogtreecommitdiff
path: root/libpod/events/events.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2019-04-26 10:50:57 -0400
committerMatthew Heon <mheon@redhat.com>2019-04-26 10:50:57 -0400
commite05af783295c9f4a0b210c0e6d368cf8c6dfe7c6 (patch)
tree242c630eea8c26d67a91641bfe45f439d7a6acfb /libpod/events/events.go
parent04d6ff058270006b98961e0f973ff6ee4c3ba8e8 (diff)
downloadpodman-e05af783295c9f4a0b210c0e6d368cf8c6dfe7c6.tar.gz
podman-e05af783295c9f4a0b210c0e6d368cf8c6dfe7c6.tar.bz2
podman-e05af783295c9f4a0b210c0e6d368cf8c6dfe7c6.zip
Do not hard fail on non-decodable events
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/events/events.go')
-rw-r--r--libpod/events/events.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/libpod/events/events.go b/libpod/events/events.go
index 533eccbb8..202c9db4e 100644
--- a/libpod/events/events.go
+++ b/libpod/events/events.go
@@ -92,7 +92,7 @@ func StringToType(name string) (Type, error) {
case Volume.String():
return Volume, nil
}
- return "", errors.Errorf("unknown event type %s", name)
+ return "", errors.Errorf("unknown event type %q", name)
}
// StringToStatus converts a string to an Event Status
@@ -111,7 +111,6 @@ func StringToStatus(name string) (Status, error) {
case Commit.String():
return Commit, nil
case Create.String():
-
return Create, nil
case Exec.String():
return Exec, nil
@@ -164,7 +163,7 @@ func StringToStatus(name string) (Status, error) {
case Untag.String():
return Untag, nil
}
- return "", errors.Errorf("unknown event status %s", name)
+ return "", errors.Errorf("unknown event status %q", name)
}
func (e EventLogFile) getTail(options ReadOptions) (*tail.Tail, error) {