aboutsummaryrefslogtreecommitdiffstats
path: root/util/debug.lua
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2013-08-09 17:48:21 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2013-08-09 17:48:21 +0200
commit4b618a8727365b880e115c6fd53869040c2ad238 (patch)
tree8031ff6fd0e32a78a157f8e6542a954e7e634c5d /util/debug.lua
parent7dd77281432685907926d50feb2d32c0c2a0ec8c (diff)
downloadprosody-4b618a8727365b880e115c6fd53869040c2ad238.tar.gz
prosody-4b618a8727365b880e115c6fd53869040c2ad238.zip
Remove all trailing whitespace
Diffstat (limited to 'util/debug.lua')
-rw-r--r--util/debug.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/debug.lua b/util/debug.lua
index bff0e347..1f1ec9df 100644
--- a/util/debug.lua
+++ b/util/debug.lua
@@ -93,14 +93,14 @@ function get_traceback_table(thread, start_level)
info = debug.getinfo(level+1);
end
if not info then break; end
-
+
levels[(level-start_level)+1] = {
level = level;
info = info;
locals = get_locals_table(level+1);
upvalues = get_upvalues_table(info.func);
};
- end
+ end
return levels;
end
@@ -137,12 +137,12 @@ function _traceback(thread, message, level)
level = level or 1;
message = message and (message.."\n") or "";
-
+
-- +3 counts for this function, and the pcall() and wrapper above us
local levels = get_traceback_table(thread, level+3);
-
+
local last_source_desc;
-
+
local lines = {};
for nlevel, level in ipairs(levels) do
local info = level.info;