projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util.dataforms: Don't return invalid JIDs in jid-single.
[prosody.git]
/
util
/
dataforms.lua
diff --git
a/util/dataforms.lua
b/util/dataforms.lua
index 1e01f6e848d5f43370509c39d53e0a501590cc4d..8cb3914418bf1d1cbe720ea0edb0ff6ee57f4da1 100644
(file)
--- 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