util.xmppstream: When error is 'no-stream', pass the received tagname to the error...
authorMatthew Wild <mwild1@gmail.com>
Sat, 23 Aug 2014 08:22:05 +0000 (09:22 +0100)
committerMatthew Wild <mwild1@gmail.com>
Sat, 23 Aug 2014 08:22:05 +0000 (09:22 +0100)
util/xmppstream.lua

index 73f5e314177f8269a0e50e9a21b7536da1438de9..138c86b744832b4e45f98798e64caf30fac664b5 100644 (file)
@@ -109,7 +109,7 @@ function new_sax_handlers(session, stream_callbacks, cb_handleprogress)
                                        end
                                else
                                        -- Garbage before stream?
-                                       cb_error(session, "no-stream");
+                                       cb_error(session, "no-stream", tagname);
                                end
                                return;
                        end