aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-28 16:21:19 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-28 16:21:19 +0100
commit463e2326d96ba1e9633da1222d46833108950d04 (patch)
treec2fd1cc20458d1f6c894831176d4574357336124
parent04a6860173205a9cb77d3441e1bb04191d3ab020 (diff)
downloadprosody-463e2326d96ba1e9633da1222d46833108950d04.tar.gz
prosody-463e2326d96ba1e9633da1222d46833108950d04.zip
util.debug: Add +1 to level when getting locals table, to account for current function
-rw-r--r--util/debug.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/debug.lua b/util/debug.lua
index 321b3267..bff0e347 100644
--- a/util/debug.lua
+++ b/util/debug.lua
@@ -97,7 +97,7 @@ function get_traceback_table(thread, start_level)
levels[(level-start_level)+1] = {
level = level;
info = info;
- locals = get_locals_table(level);
+ locals = get_locals_table(level+1);
upvalues = get_upvalues_table(info.func);
};
end