summaryrefslogtreecommitdiff
path: root/cmd/podman/system/migrate.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/system/migrate.go')
-rw-r--r--cmd/podman/system/migrate.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/system/migrate.go b/cmd/podman/system/migrate.go
index 5d7b31314..b2bca9be0 100644
--- a/cmd/podman/system/migrate.go
+++ b/cmd/podman/system/migrate.go
@@ -69,6 +69,10 @@ func migrate(cmd *cobra.Command, args []string) {
err = engine.Migrate(registry.Context(), cmd.Flags(), registry.PodmanConfig(), migrateOptions)
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)