aboutsummaryrefslogtreecommitdiffstats
path: root/main.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-09 04:26:25 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-09 04:26:25 +0500
commit7b3ed77aef482bbb6fbae080ba9e847cd748b0bd (patch)
treeb1d415ce514f84d9b7f91bb8a0f1040130ac9756 /main.lua
parentb96ce57db871f63b51e86f02a8d24129d3c2e60c (diff)
downloadprosody-7b3ed77aef482bbb6fbae080ba9e847cd748b0bd.tar.gz
prosody-7b3ed77aef482bbb6fbae080ba9e847cd748b0bd.zip
We now fail if modules fail to load at startup.
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