mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-28 21:17:23 +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 (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/caos/orbos/mntr"
|
"github.com/caos/orbos/mntr"
|
||||||
"github.com/caos/orbos/pkg/git"
|
"github.com/caos/orbos/pkg/git"
|
||||||
@ -40,6 +41,7 @@ func RootCommand(version string) (*cobra.Command, GetRootValues) {
|
|||||||
ErrFunc: func(err error) error {
|
ErrFunc: func(err error) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
monitor.Error(err)
|
monitor.Error(err)
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user