From 7734e610adf908f1b3a572f3bdaf796be26923f0 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 5 Dec 2013 17:14:36 -0200 Subject: Improve error message --- src/luarocks/type_check.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) end if expected ~= "string" then if not item:match("^"..expected.."$") then - return nil, "Type mismatch on field "..context..name..": invalid value "..item + return nil, "Type mismatch on field "..context..name..": invalid value "..item.." does not match '"..expected.."'" end end elseif expected_type == "table" then -- cgit v1.2.3-55-g6feb