Changeset

344:ea668c47e1bd

verse.client: Fix stream error error
author Kim Alvefur <zash@zash.se>
date Fri, 14 Jun 2013 23:25:54 +0200
parents 343:0d8fb22404c3
children 345:266a96ae4c0d
files client.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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