aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-08-23 09:22:05 +0100
committerMatthew Wild <mwild1@gmail.com>2014-08-23 09:22:05 +0100
commit443f33ae10d1230c9f0f78547ab73d1618fd44fe (patch)
tree213f1ce5121357425192f2f4abec171056eb4cc9 /util
parentf1e1b7b337884c764657245a3e42b8a438ad2c1c (diff)
downloadprosody-443f33ae10d1230c9f0f78547ab73d1618fd44fe.tar.gz
prosody-443f33ae10d1230c9f0f78547ab73d1618fd44fe.zip
util.xmppstream: When error is 'no-stream', pass the received tagname to the error handler
Diffstat (limited to 'util')
-rw-r--r--util/xmppstream.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xmppstream.lua b/util/xmppstream.lua
index 73f5e314..138c86b7 100644
--- a/util/xmppstream.lua
+++ b/util/xmppstream.lua
@@ -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