Give a better message from 'zpool get' with invalid pool name

Signed-off-by: Paul Dagnelie <pcd@delphix.com>
This commit is contained in:
Paul Dagnelie 2024-02-28 14:02:51 -08:00
parent 8f2f6cd2ac
commit c20dca86b6
1 changed files with 3 additions and 4 deletions

View File

@ -10752,11 +10752,10 @@ found:
} }
} else { } 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: "
fprintf(stderr, "\n"); "no such pool available.\n"), argv[0]);
usage(B_FALSE);
return (1); return (1);
} }