diff options
author | Paul Dagnelie <[email protected]> | 2024-04-03 16:34:46 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-03 16:34:46 -0700 |
commit | b6bbaa837271698f238a9264c4070416077fb67b (patch) | |
tree | 4cf1748bf9a76ad9f5f381d91318d0c5d08696ed /cmd/zpool | |
parent | 756e10b0a1f1f1fc4974e9d1736e1173d649cb8c (diff) |
Give a better message from 'zpool get' with invalid pool name
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Don Brady <[email protected]>
Reviewed-by: Tony Nguyen <[email protected]>
Signed-off-by: Paul Dagnelie <[email protected]>
Closes #15942
Diffstat (limited to 'cmd/zpool')
-rw-r--r-- | cmd/zpool/zpool_main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index c85a5f285..9df5df032 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -10793,11 +10793,10 @@ found: } } else { /* - * The first arg isn't a pool name, + * The first arg isn't the name of a valid pool. */ - fprintf(stderr, gettext("missing pool name.\n")); - fprintf(stderr, "\n"); - usage(B_FALSE); + fprintf(stderr, gettext("Cannot get properties of %s: " + "no such pool available.\n"), argv[0]); return (1); } |