Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Fix formatting directive: usage string after error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bpicode committed Jul 11, 2018
1 parent b5889dc commit ed93349
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/temperature.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func init() {
}

func changeTemperature(cmd *cobra.Command, args []string) error {
assertMinLen(args, 2, "insufficient input: at least two parameters expected.\n\n", cmd.UsageString())
assertMinLen(args, 2, "insufficient input: at least two parameters expected.\n\n%s", cmd.UsageString())
val := args[0]
action := changeAction(val)
action(val, args[1:]...)
Expand Down
2 changes: 1 addition & 1 deletion cmd/toggle.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func init() {
}

func toggle(cmd *cobra.Command, args []string) error {
assertMinLen(args, 1, "insufficient input: device name(s) expected.\n\n", cmd.UsageString())
assertMinLen(args, 1, "insufficient input: device name(s) expected.\n\n%s", cmd.UsageString())
c := homeAutoClient()
err := c.Toggle(args...)
assertNoErr(err, "error toggling device(s)")
Expand Down

0 comments on commit ed93349

Please sign in to comment.