diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-11-10 05:30:46 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-11-10 05:30:46 +0500 |
commit | eba95643c94d802c7c6f8c6615f7afd741757173 (patch) | |
tree | caf5df9c60b71ee0e8249becb70018b2f85e52fc /core/modulemanager.lua | |
parent | 67804ef1a34cba2c42ccf8324ad8fef8c04ddc47 (diff) | |
download | prosody-eba95643c94d802c7c6f8c6615f7afd741757173.tar.gz prosody-eba95643c94d802c7c6f8c6615f7afd741757173.zip |
modulemanager: Fixed: Locally defined pcall wasn't returning return values of the called function.
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 2 |
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"; |