Better error reporing for weaveutil
If a weaveutil subcmd is not found, report the fact to stderr.
This commit is contained in:
1 parent
5e290aa11f
commit
ceb0186f46
1 file changed
+1
@@ -65,6 +65,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
cmd, found := commands[os.Args[1]]
|
cmd, found := commands[os.Args[1]]
|
||||||
if !found {
|
if !found {
|
||||||
|
fmt.Fprintf(os.Stderr, "%q cmd is not found\n", os.Args[1])
|
||||||
usage()
|
usage()
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user