summaryrefslogtreecommitdiff
path: root/cmd/podman/volumes/prune.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/volumes/prune.go')
-rw-r--r--cmd/podman/volumes/prune.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/volumes/prune.go b/cmd/podman/volumes/prune.go
index 1f3cc6913..43b529768 100644
--- a/cmd/podman/volumes/prune.go
+++ b/cmd/podman/volumes/prune.go
@@ -58,6 +58,9 @@ func prune(cmd *cobra.Command, args []string) error {
return err
}
pruneOptions.Filters, err = parse.FilterArgumentsIntoFilters(filter)
+ if err != nil {
+ return err
+ }
if !force {
reader := bufio.NewReader(os.Stdin)
fmt.Println("WARNING! This will remove all volumes not used by at least one container. The following volumes will be removed:")