Diff

util/dataforms.lua @ 4887:4dd61fe04db4

util.dataforms: Don't return invalid JIDs in jid-single.
author Kim Alvefur <zash@zash.se>
date Thu, 17 May 2012 21:25:41 +0200
parent 4886:26d8e4665ce9
child 4928:5211c11dd865
line wrap: on
line diff
--- a/util/dataforms.lua	Thu May 17 21:18:35 2012 +0200
+++ b/util/dataforms.lua	Thu May 17 21:25:41 2012 +0200
@@ -156,7 +156,7 @@
 		if data and #data > 0 then
 			return data
 		elseif raw_data then
-			return raw_data, "Invalid JID";
+			return nil, "Invalid JID: " .. raw_data;
 		elseif required then
 			return nil, "Required value missing";
 		end