Software /
code /
prosody
Diff
util/debug.lua @ 5776:bd0ff8ae98a8
Remove all trailing whitespace
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Fri, 09 Aug 2013 17:48:21 +0200 |
parent | 4778:127de6eec433 |
child | 5785:b2d6c5f94aa5 |
line wrap: on
line diff
--- a/util/debug.lua Fri Aug 09 16:03:48 2013 +0200 +++ b/util/debug.lua Fri Aug 09 17:48:21 2013 +0200 @@ -93,14 +93,14 @@ 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 @@ 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;