aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)