Better error reporing for weaveutil

If a weaveutil subcmd is not found, report the fact to stderr.
This commit is contained in:
Martynas Pumputis authored and Bryan Boreham committed 2017-04-12 09:48:03 +00:00
1 parent 5e290aa11f
commit ceb0186f46
1 file changed
+1
+1
View File
@@ -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)
}