mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Return an indicative error message.
This commit is contained in:
parent
6fa3a9dd4f
commit
786a6905ec
1 changed files with 3 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue