generate a message when a module cannot be found and loadable modules are disabled
[asterisk/asterisk.git] / main / loader.c
index a3f7645..4d8e527 100644 (file)
@@ -591,6 +591,7 @@ static enum ast_module_load_result load_resource(const char *resource_name, unsi
                        }
                }
 #else
+               ast_log(LOG_WARNING, "Module '%s' could not be loaded.\n", resource_name);
                return AST_MODULE_LOAD_DECLINE;
 #endif
        }