aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/core/type_check.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/luarocks/core/type_check.lua b/src/luarocks/core/type_check.lua
index a2e14efd..1822312b 100644
--- a/src/luarocks/core/type_check.lua
+++ b/src/luarocks/core/type_check.lua
@@ -134,9 +134,12 @@ end
134 134
135local function mkfield(context, field) 135local function mkfield(context, field)
136 if context == "" then 136 if context == "" then
137 return field 137 return tostring(field)
138 elseif type(field) == "string" then
139 return context.."."..field
140 else
141 return context.."["..tostring(field).."]"
138 end 142 end
139 return context.."."..field
140end 143end
141 144
142--- Type check the contents of a table. 145--- Type check the contents of a table.