aboutsummaryrefslogtreecommitdiff
path: root/libpod/filters/containers.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/filters/containers.go')
-rw-r--r--libpod/filters/containers.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/filters/containers.go b/libpod/filters/containers.go
index e38e024d2..da1b5b263 100644
--- a/libpod/filters/containers.go
+++ b/libpod/filters/containers.go
@@ -11,6 +11,7 @@ import (
"github.com/containers/podman/v2/pkg/timetype"
"github.com/containers/podman/v2/pkg/util"
"github.com/pkg/errors"
+ "github.com/sirupsen/logrus"
)
// GenerateContainerFilterFuncs return ContainerFilter functions based of filter.
@@ -40,6 +41,7 @@ func GenerateContainerFilterFuncs(filter, filterValue string, r *libpod.Runtime)
return func(c *libpod.Container) bool {
match, err := regexp.MatchString(filterValue, c.Name())
if err != nil {
+ logrus.Errorf("Failed to compile regex for 'name' filter: %v", err)
return false
}
return match