verse.client: Fix stream error error

Fri, 14 Jun 2013 23:25:54 +0200

author
Kim Alvefur <zash@zash.se>
date
Fri, 14 Jun 2013 23:25:54 +0200
changeset 344
ea668c47e1bd
parent 343
0d8fb22404c3
child 345
266a96ae4c0d

verse.client: Fix stream error error

client.lua file | annotate | diff | comparison | revisions
--- a/client.lua	Sat Jun 08 18:17:09 2013 +0100
+++ b/client.lua	Fri Jun 14 23:25:54 2013 +0200
@@ -55,7 +55,7 @@
 	if stream:event(e, stanza) == nil then
 		local err = stanza:get_child(nil, "urn:ietf:params:xml:ns:xmpp-streams");
 		local text = stanza:get_child_text("text", "urn:ietf:params:xml:ns:xmpp-streams");
-		error(err.name..(text and ": "..text));
+		error(err.name..(text and ": "..text or ""));
 	end
 end
 

mercurial