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
commit92447edf0cc5960119f149820ddc170dd91ff13b (patch)
tree78db109cd4efaeb3cd339ddd810b82ef7089e9e0 /util
parentc332afde6eed518672dbdfaedb2b3e95a7d80f16 (diff)
downloadprosody-92447edf0cc5960119f149820ddc170dd91ff13b.tar.gz
prosody-92447edf0cc5960119f149820ddc170dd91ff13b.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