Diff

net/xmppserver_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 330:d9d4c1de16ce
line wrap: on
line diff
--- a/net/xmppserver_listener.lua	Sun Nov 09 20:14:58 2008 +0000
+++ b/net/xmppserver_listener.lua	Sun Nov 09 20:15:31 2008 +0000
@@ -64,7 +64,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