Index: stand/lua/config.lua =================================================================== --- stand/lua/config.lua +++ stand/lua/config.lua @@ -265,7 +265,7 @@ return true end -local function loadModule(mod, silent) +local function loadModule(mod) local status = true local pstatus for k, v in pairs(mod) do @@ -284,16 +284,14 @@ end if v.before ~= nil then pstatus = cli_execute_unparsed(v.before) == 0 - if not pstatus and not silent then + if not pstatus then print(MSG_FAILEXBEF:format(v.before, k)) end status = status and pstatus end if cli_execute_unparsed(str) ~= 0 then - if not silent then - print(MSG_FAILEXMOD:format(str)) - end + print(MSG_FAILEXMOD:format(str)) if v.error ~= nil then cli_execute_unparsed(v.error) end @@ -302,7 +300,7 @@ if v.after ~= nil then pstatus = cli_execute_unparsed(v.after) == 0 - if not pstatus and not silent then + if not pstatus then print(MSG_FAILEXAF:format(v.after, k)) end status = status and pstatus @@ -614,9 +612,8 @@ end print(MSG_MODLOADING) - if not loadModule(modules, not config.verbose) then - print(MSG_MODLOADFAIL) - end + -- loadModule prints its own error messages + loadModule(modules) end hook.registerType("config.loaded")