Diff

core/modulemanager.lua @ 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
parent 3587:d94aacb2771a
child 3595:ec1151d0c4a4
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";