mirror of
https://github.com/go-i2p/goSam.git
synced 2025-07-12 21:59:28 -04:00
return erroneous string in validCmd
This commit is contained in:
@ -14,7 +14,7 @@ func (c *Client) validCmd(str string, args ...interface{}) (string, error) {
|
||||
sl := strings.Split(s, "\n")
|
||||
if len(sl) == 2 {
|
||||
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 {
|
||||
fmt.Println(li, in)
|
||||
|
Reference in New Issue
Block a user