We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3b783a commit d4740ceCopy full SHA for d4740ce
1 file changed
pkg/cli/cli.go
@@ -110,6 +110,11 @@ func updateCmd() *cobra.Command {
110
reader, err := os.Open(filepath.Join(os.TempDir(), cliName))
111
utl.CheckErr(err)
112
err = update.Apply(reader, update.Options{})
113
+ if err != nil {
114
+ update.RollbackError(err)
115
+ fmt.Println(err)
116
+ utl.CheckErr(fmt.Errorf("update failed :("))
117
+ }
118
fmt.Println("update finished successfully :)")
119
},
120
}
0 commit comments