aboutsummaryrefslogtreecommitdiffstats
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index eac26fe5..2dd1a1d9 100644
--- a/main.lua
+++ b/main.lua
@@ -41,7 +41,9 @@ require "util.jid"
-- Initialise modules
if config.modules and #config.modules > 0 then
for _, module in pairs(config.modules) do
- modulemanager.load(module);
+ if not modulemanager.load(module) then
+ error("Unable to load module "..module);
+ end
end
else error("No modules enabled in the configuration file"); end