Skip to content

Commit

Permalink
Give a better message from 'zpool get' when an invalid pool name is p…
Browse files Browse the repository at this point in the history
…rovided

Signed-off-by: Paul Dagnelie <pcd@delphix.com>
  • Loading branch information
pcd1193182 committed Feb 28, 2024
1 parent 8f2f6cd commit 1bc2ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/zpool/zpool_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -10752,9 +10752,9 @@ 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("%s: no such pool.\n"), argv[0]);
fprintf(stderr, "\n");
usage(B_FALSE);
return (1);
Expand Down

0 comments on commit 1bc2ada

Please sign in to comment.