Skip to content

Commit

Permalink
Add error message for wrong option format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariquest committed Dec 9, 2024
1 parent 49971d9 commit cc92b54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cf/commands/route/update-route.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,13 @@ func (cmd *UpdateRoute) Execute(c flags.FlagContext) error {
"Option": terminal.EntityNameColor(key),
"URL": terminal.EntityNameColor(url)}))
route.Options[key] = value
} else {
cmd.ui.Say(T("Wrong route option format {{.Option}} for {{.URL}}...", map[string]interface{}{
"Option": terminal.FailureColor(option),
"URL": terminal.EntityNameColor(url)}))
}
}

if c.IsSet("r") {
cmd.ui.Say(T("Removing route option {{.Option}} for {{.URL}}...", map[string]interface{}{
"Option": terminal.EntityNameColor(removeOption),
Expand Down

0 comments on commit cc92b54

Please sign in to comment.