summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-06-02 20:35:37 +0000
committerphk <phk@FreeBSD.org>2003-06-02 20:35:37 +0000
commit9a8f0922c0b8fda595f882dbdab0cdf072d993b1 (patch)
tree5d67955d9bdc8bdac369dd61ed02130ce34b3e80 /sys/geom
parent4cb71339df3af1ac2a66373f5d15d934af32c1ad (diff)
downloadFreeBSD-src-9a8f0922c0b8fda595f882dbdab0cdf072d993b1.zip
FreeBSD-src-9a8f0922c0b8fda595f882dbdab0cdf072d993b1.tar.gz
Return an indicative error message.
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom_ctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c
index bb92d41..76491b8 100644
--- a/sys/geom/geom_ctl.c
+++ b/sys/geom/geom_ctl.c
@@ -435,8 +435,10 @@ g_ctl_req(void *arg, int flag __unused)
g_topology_assert();
req = arg;
mp = gctl_get_class(req, "class");
- if (mp == NULL)
+ if (mp == NULL) {
+ gctl_error(req, "Class not found");
return;
+ }
verb = gctl_get_param(req, "verb", NULL);
if (mp->ctlreq == NULL)
gctl_error(req, "Class takes no requests");
OpenPOWER on IntegriCloud