aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/dataforms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index e866f502..052d6a55 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -187,7 +187,7 @@ function form_t.data(layout, stanza, current)
if valid then
value = ret;
else
- value, err = nil, ret or field.datatype;
+ value, err = nil, ret or ("Invalid value for data of type " .. field.datatype);
end
end
data[field.name], errors[field.name] = value, err;