From 3c686a0d578c4eb7469d2ff56942e5d9a1c2a2be Mon Sep 17 00:00:00 2001 From: Markus Grüneis Date: Tue, 1 Jun 2010 18:35:40 +0000 Subject: mini-fix in debug-shell: return statement now works --- src/debug_shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug_shell.lua b/src/debug_shell.lua index 25bc1ed..005fb9f 100644 --- a/src/debug_shell.lua +++ b/src/debug_shell.lua @@ -131,7 +131,7 @@ debug_shell.exec_cmd = function() local chunk = loadstring(luacode) if(chunk) then log.printf(log.DEBUG, "debug shell: calling lua command: '%s'", luacode) - local results = { pcall(function() chunk() end) } + local results = { pcall(chunk) } if(results[1]) then for i,result in ipairs(results) do if(i ~= 1) then -- cgit v1.2.3