Diff

main.lua @ 229:01bd24ea488d

We now fail if modules fail to load at startup.
author Waqas Hussain <waqas20@gmail.com>
date Sun, 09 Nov 2008 04:26:25 +0500
parent 224:4b1e30ddd2bb
child 230:e46525f5b2a4
line wrap: on
line diff
--- a/main.lua	Sun Nov 09 03:33:38 2008 +0500
+++ b/main.lua	Sun Nov 09 04:26:25 2008 +0500
@@ -41,7 +41,9 @@
 -- 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