diff options
author | Kim Alvefur <zash@zash.se> | 2012-05-17 21:25:41 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-05-17 21:25:41 +0200 |
commit | e2ff625068f6e5ba977ce4536d7e562562af59ad (patch) | |
tree | 3076a7c51af7f1d69494aca189ffc28acec0b6e6 /util/dataforms.lua | |
parent | 92447edf0cc5960119f149820ddc170dd91ff13b (diff) | |
download | prosody-e2ff625068f6e5ba977ce4536d7e562562af59ad.tar.gz prosody-e2ff625068f6e5ba977ce4536d7e562562af59ad.zip |
util.dataforms: Don't return invalid JIDs in jid-single.
Diffstat (limited to 'util/dataforms.lua')
-rw-r--r-- | util/dataforms.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua index 1e01f6e8..8cb39144 100644 --- a/util/dataforms.lua +++ b/util/dataforms.lua @@ -156,7 +156,7 @@ field_readers["jid-single"] = 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 |