Skip to content

Commit

Permalink
Follow CLI style guidelines for error messages. (cloudfoundry#1620)
Browse files Browse the repository at this point in the history
[Finishes #165424003]

Authored-by: Eric Promislow <eric.promislow@suse.com>
  • Loading branch information
ericpromislow authored and willmurphyscode committed Apr 26, 2019
1 parent 668ce5a commit 6f050b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion command/v7/set_label_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (cmd SetLabelCommand) Execute(args []string) error {
case "org":
err = cmd.executeOrg(username, labels)
default:
err = fmt.Errorf("Unsupported resource type of %s", cmd.RequiredArgs.ResourceType)
err = fmt.Errorf("Unsupported resource type of '%s'", cmd.RequiredArgs.ResourceType)
}

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion command/v7/set_label_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ var _ = Describe("set-label command", func() {
})

It("errors", func() {
Expect(executeErr).To(MatchError("Unsupported resource type of unrecognized-resource"))
Expect(executeErr).To(MatchError("Unsupported resource type of 'unrecognized-resource'"))
})
})

Expand Down

0 comments on commit 6f050b3

Please sign in to comment.