diff options
Diffstat (limited to 'services/modstack.c')
-rw-r--r-- | services/modstack.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/services/modstack.c b/services/modstack.c index 136245a968386..05b949d1e330d 100644 --- a/services/modstack.c +++ b/services/modstack.c @@ -113,8 +113,14 @@ modstack_config(struct module_stack* stack, const char* module_conf) for(i=0; i<stack->num; i++) { stack->mod[i] = module_factory(&module_conf); if(!stack->mod[i]) { - log_err("Unknown value for next module: '%s'", - module_conf); + char md[256]; + snprintf(md, sizeof(md), "%s", module_conf); + if(strchr(md, ' ')) *(strchr(md, ' ')) = 0; + if(strchr(md, '\t')) *(strchr(md, '\t')) = 0; + log_err("Unknown value in module-config, module: '%s'." + " This module is not present (not compiled in)," + " See the list of linked modules with unbound -h", + md); return 0; } } |