1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
This commit is contained in:
Steffen Vogel 2020-08-17 17:10:07 +02:00
parent 006f1ba405
commit d9134e662b

View file

@ -77,7 +77,7 @@ void hook_list_parse(vlist *hs, json_t *cfg, int mask, struct vpath *o, struct n
auto hf = plugin::Registry::lookup<HookFactory>(type);
if (!hf)
throw ConfigError(json_hook, "node-config-hook", "Unkown hook type '{}'", type);
throw ConfigError(json_hook, "node-config-hook", "Unknown hook type '{}'", type);
if (!(hf->getFlags() & mask))
throw ConfigError(json_hook, "node-config-hook", "Hook '{}' not allowed here", type);