summaryrefslogtreecommitdiff
path: root/cmd/podman/system/renumber.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/system/renumber.go')
-rw-r--r--cmd/podman/system/renumber.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/system/renumber.go b/cmd/podman/system/renumber.go
index f24488822..e5a241a4f 100644
--- a/cmd/podman/system/renumber.go
+++ b/cmd/podman/system/renumber.go
@@ -56,6 +56,9 @@ func renumber(cmd *cobra.Command, args []string) {
err = engine.Renumber(registry.Context(), cmd.Flags(), registry.PodmanConfig())
if err != nil {
fmt.Println(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)