aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/type_check.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/luarocks/type_check.lua b/src/luarocks/type_check.lua
index 82763401..63c59ca2 100644
--- a/src/luarocks/type_check.lua
+++ b/src/luarocks/type_check.lua
@@ -234,9 +234,12 @@ end
234 234
235local function mkfield(context, field) 235local function mkfield(context, field)
236 if context == "" then 236 if context == "" then
237 return field 237 return tostring(field)
238 elseif type(field) == "string" then
239 return context.."."..field
240 else
241 return context.."["..tostring(field).."]"
238 end 242 end
239 return context.."."..field
240end 243end
241 244
242--- Type check the contents of a table. 245--- Type check the contents of a table.