aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-09-28 23:27:57 +0200
committerDimitri Sokolyuk <demon@dim13.org>2018-09-28 23:27:57 +0200
commitf10cf4ae0ce997c77cd4aff5657d720a167ed0f7 (patch)
tree431f7161e0a3d022ce23882188275ea4d4389d83
parentf5df1d03524b12b8ac0b6a47f13bcd0e47464873 (diff)
...
-rw-r--r--blinkstick.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/blinkstick.go b/blinkstick.go
index 6e95f43..acf8a10 100644
--- a/blinkstick.go
+++ b/blinkstick.go
@@ -49,7 +49,7 @@ func Set(w io.Writer, colors ...color.Color) error {
buf = make([]byte, 3*64+2)
buf[0] = 9
default:
- errors.New("too many colors")
+ return errors.New("too many colors")
}
for i, c := range colors {
r, g, b := rgb(c)