summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@anylike.org>2010-06-01 18:35:40 +0000
committerMarkus Grüneis <gimpf@anylike.org>2010-06-01 18:35:40 +0000
commit3c686a0d578c4eb7469d2ff56942e5d9a1c2a2be (patch)
tree8fddc43f40eba9db74800bf2bb1e339a9c6a3b52
parentsmall bugfixes (diff)
mini-fix in debug-shell: return statement now works
-rw-r--r--src/debug_shell.lua2
1 files changed, 1 insertions, 1 deletions
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