Software /
code /
prosody
Changeset
3588:1e570ed17147
modulemanager: Fixed: Locally defined pcall wasn't returning return values of the called function.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 10 Nov 2010 05:30:46 +0500 |
parents | 3587:d94aacb2771a |
children | 3589:1792610e169e |
files | core/modulemanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/modulemanager.lua Wed Nov 10 03:39:38 2010 +0500 +++ b/core/modulemanager.lua Wed Nov 10 05:30:46 2010 +0500 @@ -34,7 +34,7 @@ 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";