We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61a724d commit 0499699Copy full SHA for 0499699
cmd/rollback.go
@@ -61,6 +61,11 @@ func rollback(cmd *cobra.Command, args []string) error {
61
}
62
63
response, err := aBsys.Rollback(checkOnly)
64
+ if err != nil {
65
+ cmdr.Error.Println(err)
66
+ os.Exit(2)
67
+ return err
68
+ }
69
switch response {
70
case core.ROLLBACK_RES_YES:
71
// NOTE: the following strings could lead to misinterpretation, with
@@ -77,10 +82,6 @@ func rollback(cmd *cobra.Command, args []string) error {
77
82
case core.ROLLBACK_SUCCESS:
78
83
cmdr.Info.Println(abroot.Trans("rollback.rollbackSuccess"))
79
84
os.Exit(0)
80
- case core.ROLLBACK_FAILED:
81
- cmdr.Info.Println(abroot.Trans("rollback.rollbackFailed", err))
- os.Exit(1)
- return err
85
86
87
return nil
0 commit comments