aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-10 05:30:46 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-10 05:30:46 +0500
commiteba95643c94d802c7c6f8c6615f7afd741757173 (patch)
treecaf5df9c60b71ee0e8249becb70018b2f85e52fc /core
parent67804ef1a34cba2c42ccf8324ad8fef8c04ddc47 (diff)
downloadprosody-eba95643c94d802c7c6f8c6615f7afd741757173.tar.gz
prosody-eba95643c94d802c7c6f8c6615f7afd741757173.zip
modulemanager: Fixed: Locally defined pcall wasn't returning return values of the called function.
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index e1483d40..0ed70360 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -34,7 +34,7 @@ local unpack, select = unpack, select;
pcall = function(f, ...)
local n = select("#", ...);
local params = {...};
- return xpcall(function() f(unpack(params, 1, n)) end, function(e) return tostring(e).."\n"..debug_traceback(); end);
+ return xpcall(function() return f(unpack(params, 1, n)) end, function(e) return tostring(e).."\n"..debug_traceback(); end);
end
local array, set = require "util.array", require "util.set";