From a57ebd8e7ef6e579169f3573f0e5026d9d17e890 Mon Sep 17 00:00:00 2001 From: idk Date: Wed, 22 Aug 2018 08:57:38 -0400 Subject: [PATCH] return erroneous string in validCmd --- options_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options_test.go b/options_test.go index 5b31de0..7417f46 100644 --- a/options_test.go +++ b/options_test.go @@ -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)