@cryptotaxi247 / kubo / commits / 5503c4cc8

parse_test: improve error messages

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed May 17, 2015 at 23:14 UTC 5503c4cc8914801d95344b257de07c513dfa1f16
1 file changed +2 -2
commands/cli/parse_test.go
+2 -2
@@ -166,10 +166,10 @@ func TestArgumentParsing(t *testing.T) {
166 }
167 req, _, _, err := Parse(cmd, f, rootCmd)
168 if err != nil {
169 - t.Errorf("Command '%v' should have passed parsing", cmd)
169 + t.Errorf("Command '%v' should have passed parsing: %v", cmd, err)
170 }
171 if !sameWords(req.Arguments(), res) {
172 - t.Errorf("Arguments parsed from '%v' are not '%v'", cmd, res)
172 + t.Errorf("Arguments parsed from '%v' are '%v' instead of '%v'", cmd, req.Arguments(), res)
173 }
174 }
175