From ceb0186f462c0d3ef38b15df422e77f139b62f02 Mon Sep 17 00:00:00 2001 From: Martynas Pumputis Date: Tue, 7 Mar 2017 16:28:48 +0000 Subject: [PATCH] Better error reporing for weaveutil If a weaveutil subcmd is not found, report the fact to stderr. --- prog/weaveutil/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/prog/weaveutil/main.go b/prog/weaveutil/main.go index 10e771f3..9e8ea815 100644 --- a/prog/weaveutil/main.go +++ b/prog/weaveutil/main.go @@ -65,6 +65,7 @@ func main() { } cmd, found := commands[os.Args[1]] if !found { + fmt.Fprintf(os.Stderr, "%q cmd is not found\n", os.Args[1]) usage() os.Exit(1) }