summaryrefslogtreecommitdiff
path: root/cmd/podman/system/reset.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/system/reset.go')
-rw-r--r--cmd/podman/system/reset.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/system/reset.go b/cmd/podman/system/reset.go
index e8cf127b7..03783170f 100644
--- a/cmd/podman/system/reset.go
+++ b/cmd/podman/system/reset.go
@@ -95,6 +95,9 @@ func reset(cmd *cobra.Command, args []string) {
if err := engine.Reset(registry.Context()); err != nil {
logrus.Error(err)
+ // FIXME change this to return the error like other commands
+ // defer will never run on os.Exit()
+ //nolint:gocritic
os.Exit(define.ExecErrorCodeGeneric)
}
os.Exit(0)