aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-05-17 21:18:35 +0200
committerKim Alvefur <zash@zash.se>2012-05-17 21:18:35 +0200
commit9cf153e1bc49c1b9544f1f4e72a75eae5c363123 (patch)
tree78db109cd4efaeb3cd339ddd810b82ef7089e9e0 /util
parentb5ab3d394d800a9feada9cf0495c6195c27a9f9e (diff)
downloadprosody-9cf153e1bc49c1b9544f1f4e72a75eae5c363123.tar.gz
prosody-9cf153e1bc49c1b9544f1f4e72a75eae5c363123.zip
util.dataforms: Fix validation of booleans.
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 85bb39c1..1e01f6e8 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -214,7 +214,7 @@ field_readers["boolean"] =
if value ~= nil then
return value;
elseif raw_value then
- return "Invalid boolean representation";
+ return nil, "Invalid boolean representation";
elseif required then
return nil, "Required value missing";
end