Ver código fonte

Error returning

Denis V. Dedkov 9 anos atrás
pai
commit
d836c3a108
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      noolite-cli.go

+ 1 - 1
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" {