mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-28 16:37:24 +00:00
fix: return unsuccessful code on failure (#2077)
This commit is contained in:
parent
93ad1daa69
commit
e546988d2f
@ -2,6 +2,7 @@ package cmds
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
|
||||
"github.com/caos/orbos/mntr"
|
||||
"github.com/caos/orbos/pkg/git"
|
||||
@ -40,6 +41,7 @@ func RootCommand(version string) (*cobra.Command, GetRootValues) {
|
||||
ErrFunc: func(err error) error {
|
||||
if err != nil {
|
||||
monitor.Error(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
return nil
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user