From d836c3a10899fc08fd1ea9c181f941519510b58b Mon Sep 17 00:00:00 2001 From: "Denis V. Dedkov" Date: Sat, 23 Jul 2016 16:38:39 +0500 Subject: [PATCH] Error returning --- noolite-cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noolite-cli.go b/noolite-cli.go index 985066f..6e4e1da 100644 --- a/noolite-cli.go +++ b/noolite-cli.go @@ -23,7 +23,7 @@ func sendCommand(command string, channel, value, r, g, b int) error { defer n.Close() if err != nil { - panic(err) + return err } if command == "set" {