aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/dataforms.lua2
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