aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-12-05 17:14:36 -0200
committerHisham Muhammad <hisham@gobolinux.org>2013-12-05 17:14:36 -0200
commit7734e610adf908f1b3a572f3bdaf796be26923f0 (patch)
tree0f283fbd622f1545812b99aeeb6205c855a150a3
parent42396f9c99a86b54f10c8e8736a77770d53947fd (diff)
downloadluarocks-7734e610adf908f1b3a572f3bdaf796be26923f0.tar.gz
luarocks-7734e610adf908f1b3a572f3bdaf796be26923f0.tar.bz2
luarocks-7734e610adf908f1b3a572f3bdaf796be26923f0.zip
Improve error message
-rw-r--r--src/luarocks/type_check.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/type_check.lua b/src/luarocks/type_check.lua
index 6a0ee7e7..5436bde6 100644
--- a/src/luarocks/type_check.lua
+++ b/src/luarocks/type_check.lua
@@ -184,7 +184,7 @@ local function type_check_item(name, item, expected, context)
184 end 184 end
185 if expected ~= "string" then 185 if expected ~= "string" then
186 if not item:match("^"..expected.."$") then 186 if not item:match("^"..expected.."$") then
187 return nil, "Type mismatch on field "..context..name..": invalid value "..item 187 return nil, "Type mismatch on field "..context..name..": invalid value "..item.." does not match '"..expected.."'"
188 end 188 end
189 end 189 end
190 elseif expected_type == "table" then 190 elseif expected_type == "table" then