Skip to content

Commit

Permalink
Merge pull request #282 from replicatedhq/laverya/fix-kots-upstream-u…
Browse files Browse the repository at this point in the history
…pgrade-command-docs

include requirement for appSlug in 'kots upstream upgrade' help text
  • Loading branch information
laverya authored Jan 27, 2020
2 parents 9238206 + 608461f commit 2e072ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kots/cli/upstream-upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

func UpstreamUpgradeCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "upgrade",
Use: "upgrade [appSlug]",
Short: "Fetch the latest version of the upstream application",
Long: "",
SilenceUsage: true,
Expand Down Expand Up @@ -75,7 +75,7 @@ func UpstreamUpgradeCmd() *cobra.Command {

if resp.StatusCode == 404 {
log.FinishSpinnerWithError()
return errors.New("The application was not found in the cluster in the specified namespace")
return errors.Errorf("The application %s was not found in the cluster in the specified namespace", args[0])
} else if resp.StatusCode != 200 {
log.FinishSpinnerWithError()
return errors.Errorf("Unexpected response from the API: %d", resp.StatusCode)
Expand Down

0 comments on commit 2e072ef

Please sign in to comment.