fix execution exit code on error

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
Adphi 2023-03-01 13:30:25 +01:00
parent 70877dfb9b
commit 3cd37fb11c
Signed by: adphi
GPG Key ID: 46BE4062DB2397FF
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ func main() {
fmt.Println()
cancel()
}()
rootCmd.ExecuteContext(ctx)
if err := rootCmd.ExecuteContext(ctx); err != nil {
logrus.Fatal(err)
}
}
func init() {