From 5503c4cc8914801d95344b257de07c513dfa1f16 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sun, 17 May 2015 23:14:08 +0200 Subject: [PATCH] parse_test: improve error messages License: MIT Signed-off-by: Christian Couder --- commands/cli/parse_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/cli/parse_test.go b/commands/cli/parse_test.go index 5caf5bdae..640fdd287 100644 --- a/commands/cli/parse_test.go +++ b/commands/cli/parse_test.go @@ -166,10 +166,10 @@ func TestArgumentParsing(t *testing.T) { } req, _, _, err := Parse(cmd, f, rootCmd) if err != nil { - t.Errorf("Command '%v' should have passed parsing", cmd) + t.Errorf("Command '%v' should have passed parsing: %v", cmd, err) } if !sameWords(req.Arguments(), res) { - t.Errorf("Arguments parsed from '%v' are not '%v'", cmd, res) + t.Errorf("Arguments parsed from '%v' are '%v' instead of '%v'", cmd, req.Arguments(), res) } }