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 | 644b8615f37782ae0ed7cdc07cc430f8995309a2 (patch) | |
tree | 3076a7c51af7f1d69494aca189ffc28acec0b6e6 /util/dataforms.lua | |
parent | 9cf153e1bc49c1b9544f1f4e72a75eae5c363123 (diff) | |
download | prosody-644b8615f37782ae0ed7cdc07cc430f8995309a2.tar.gz prosody-644b8615f37782ae0ed7cdc07cc430f8995309a2.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 |