mirror of
https://github.com/go-i2p/goSam.git
synced 2025-07-13 06:07:42 -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")
|
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)
|
||||||
|
Reference in New Issue
Block a user