diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/type_check.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/type_check.lua b/src/luarocks/type_check.lua index 4adb7cf4..bc315214 100644 --- a/src/luarocks/type_check.lua +++ b/src/luarocks/type_check.lua | |||
@@ -216,7 +216,7 @@ local function type_check_item(version, item, typetbl, context) | |||
216 | end | 216 | end |
217 | if typetbl._pattern then | 217 | if typetbl._pattern then |
218 | if not item:match("^"..typetbl._pattern.."$") then | 218 | if not item:match("^"..typetbl._pattern.."$") then |
219 | return nil, "Type mismatch on field "..context..": invalid value "..item.." does not match '"..expected.."'" | 219 | return nil, "Type mismatch on field "..context..": invalid value "..item.." does not match '"..typetbl._pattern.."'" |
220 | end | 220 | end |
221 | end | 221 | end |
222 | elseif expected_type == "table" then | 222 | elseif expected_type == "table" then |