Skip to content

Commit

Permalink
Fixing error message
Browse files Browse the repository at this point in the history
  • Loading branch information
campoy committed Jun 14, 2019
1 parent 2ff4744 commit 3d78bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flags/color.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (c *hexColor) Set(s string) error {
s = fmt.Sprintf("%c0%c0%c0", s[0], s[1], s[2])
}
if len(s) != 6 {
return fmt.Errorf("color should be 6 digits")
return fmt.Errorf("color should be 3 or 6 hex digits")
}
n, err := strconv.ParseInt(s, 16, 64)
if err != nil {
Expand Down

0 comments on commit 3d78bbb

Please sign in to comment.