change error format

This commit is contained in:
2020-03-27 19:31:12 -05:00
parent 7c7b06e893
commit 8df5b1d779
4 changed files with 9 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ func ToggleCmd(args CmdArgs) int {
selector := args.Flags.String("selector")
r, err := c.Toggle(selector, duration)
if err != nil {
fmt.Println(err)
fmt.Printf("fatal: %s\n", err)
return 1
}
PrintResults(r.Results)