Skip to content

Commit

Permalink
Improve pipelines sync error
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 committed Jul 30, 2023
1 parent 315d13e commit fc2c512
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pipelines/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ func syncPipelineResources(c *cli.Context) error {
func getSyncPipelineResourcesStatus(c *cli.Context) error {
branch := c.String("branch")
if branch == "" {
return cliutils.PrintHelpAndReturnError("missing --branch <branch name>", c)
return cliutils.PrintHelpAndReturnError("The --branch option is mandatory.", c)
}
repository := c.String("repository")
if repository == "" {
return cliutils.PrintHelpAndReturnError("missing --repository <repository name>", c)
return cliutils.PrintHelpAndReturnError("The --repository option is mandatory.", c)
}
clientlog.Info("Fetching pipeline sync status on repository:", repository, "branch:", branch)

Expand Down
4 changes: 2 additions & 2 deletions utils/cliutils/commandsflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ var flagsMap = map[string]cli.Flag{
},
branch: cli.StringFlag{
Name: branch,
Usage: "Branch name to filter.` `",
Usage: "[Mandatory] Branch name to filter.` `",
},
pipelineName: cli.StringFlag{
Name: pipelineName,
Expand All @@ -1554,7 +1554,7 @@ var flagsMap = map[string]cli.Flag{
},
repository: cli.StringFlag{
Name: repository,
Usage: "Repository name to filter resource.` `",
Usage: "[Mandatory] Repository name to filter resource.` `",
},
singleBranch: cli.BoolFlag{
Name: singleBranch,
Expand Down

0 comments on commit fc2c512

Please sign in to comment.