mirror of https://github.com/linka-cloud/d2vm.git
fix execution exit code on error
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
parent
70877dfb9b
commit
3cd37fb11c
|
@ -75,7 +75,9 @@ func main() {
|
|||
fmt.Println()
|
||||
cancel()
|
||||
}()
|
||||
rootCmd.ExecuteContext(ctx)
|
||||
if err := rootCmd.ExecuteContext(ctx); err != nil {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
Loading…
Reference in New Issue