Software /
code /
prosody
Diff
net/xmppclient_listener.lua @ 232:20745f8f4cf1
Actually show error and position when we show a traceback :)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 09 Nov 2008 20:15:31 +0000 |
parent | 226:ba4711c4e8d2 |
child | 267:6303b7454ad0 |
line wrap: on
line diff
--- a/net/xmppclient_listener.lua Sun Nov 09 20:14:58 2008 +0000 +++ b/net/xmppclient_listener.lua Sun Nov 09 20:15:31 2008 +0000 @@ -62,7 +62,7 @@ -- (I'm on a mission, no time to fix now) -- Debug version -- - local function handleerr() print("Traceback:", debug.traceback()); end + local function handleerr(err) print("Traceback:", err, debug.traceback()); end session.stanza_dispatch = function (stanza) return select(2, xpcall(function () return core_process_stanza(session, stanza); end, handleerr)); end -- session.stanza_dispatch = function (stanza) return core_process_stanza(session, stanza); end