Give a better message from 'zpool get' with invalid pool name
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
This commit is contained in:
parent
8f2f6cd2ac
commit
c20dca86b6
|
@ -10752,11 +10752,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue