Skip to content

Commit

Permalink
Added error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
satr committed Nov 12, 2024
1 parent 7b28c46 commit b1c3be4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/createBuildDeployPipelineJob.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ var createBuildDeployApplicationCmd = &cobra.Command{
if appName == "" || branch == "" {
errs = append(errs, errors.New("application name and branch are required"))
}
if len(errs) > 0 {
return errors.Join(errs...)
}

cmd.SilenceUsage = true

apiClient, err := client.GetForCommand(cmd)
Expand Down

0 comments on commit b1c3be4

Please sign in to comment.