From 911c17040ac63d03f3965e308c174e6d20039340 Mon Sep 17 00:00:00 2001 From: Paul Dagnelie Date: Wed, 28 Feb 2024 14:02:51 -0800 Subject: [PATCH] Give a better message from 'zpool get' when an invalid pool name is provided Signed-off-by: Paul Dagnelie --- cmd/zpool/zpool_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index 0783271f4734..3a015f51fc7e 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -10752,11 +10752,11 @@ zpool_do_get(int argc, char **argv) } } 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, gettext("Cannot get properties of %s: " + "no such pool available.\n"), argv[0]); fprintf(stderr, "\n"); - usage(B_FALSE); return (1); }