ExitFailure matches stdlib.h

This commit is contained in:
2021-01-31 11:08:24 -06:00
parent ec673a6fde
commit 320815293d
9 changed files with 18 additions and 18 deletions

View File

@ -58,7 +58,7 @@ func SetWhiteCmd(args CmdArgs) (int, error) {
kelvin := args.Flags.Int16("kelvin")
color, err := lifx.NewWhite(kelvin)
if err != nil {
return ExitError, err
return ExitFailure, err
}
state.Color = color
}
@ -68,7 +68,7 @@ func SetWhiteCmd(args CmdArgs) (int, error) {
name := args.Flags.String("name")
color, err := lifx.NewWhiteString(name)
if err != nil {
return ExitError, err
return ExitFailure, err
}
state.Color = color
}
@ -93,7 +93,7 @@ func SetWhiteCmd(args CmdArgs) (int, error) {
r, err := c.SetState(selector, state)
if err != nil {
return ExitError, err
return ExitFailure, err
}
if !fast {