Skip to content

Commit

Permalink
change exit code for create-release binary in some case
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien-marty authored Nov 2, 2024
1 parent 804acde commit ed7e553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/infra/controllers/cli/create_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func createReleaseAction(cCtx *cli.Context) error {
if err == app.ErrNoRelease {
return cli.Exit(errors.New("no need to create a release => use --release-force if you want to force a version bump and a new release"), 2)
}
return cli.Exit(err.Error(), 1)
return cli.Exit(err.Error(), 2)
}
fmt.Println(newTag)
return nil
Expand Down

0 comments on commit ed7e553

Please sign in to comment.