return erroneous string in validCmd

This commit is contained in:
idk
2018-08-22 08:57:38 -04:00
parent aab53e9153
commit a57ebd8e7e

View File

@ -14,7 +14,7 @@ func (c *Client) validCmd(str string, args ...interface{}) (string, error) {
sl := strings.Split(s, "\n") sl := strings.Split(s, "\n")
if len(sl) == 2 { if len(sl) == 2 {
if sl[1] != "" { if sl[1] != "" {
return "", fmt.Errorf("Error, there should be no options after the newline") return sl[1], fmt.Errorf("Error, there should be no options after the newline")
} }
for li, in := range sl { for li, in := range sl {
fmt.Println(li, in) fmt.Println(li, in)