Improve error message for conflicting API field registrations

This commit is contained in:
Jason Perkins 2013-10-12 16:17:24 -04:00
parent 760261cf3d
commit d7ff3629ed

View File

@ -41,7 +41,7 @@
end
if _G[name] then
error("name in use", 2)
error("name '" .. name .. "' in use", 2)
end
-- make sure there is a handler available for this kind of value