diff --git a/stead/object.lua b/stead/object.lua index 4e7ba24..103ca82 100644 --- a/stead/object.lua +++ b/stead/object.lua @@ -135,7 +135,7 @@ function list_check(self, name) -- force using of objects, instead refs for i,v,ii in opairs(self) do local o = stead.ref(v); if not isObject(o) then - error ("No object: "..tostring(v)) + error ("No object: "..name.."["..tostring(ii).."]".." ("..tostring(type(v))..")") return false end if (v.auto_allocated and not stead.ref(v.key_name)) -- renew diff --git a/stead/stead.lua b/stead/stead.lua index a953504..889a496 100644 --- a/stead/stead.lua +++ b/stead/stead.lua @@ -581,7 +581,7 @@ function list_check(self, name) for i,v,ii in opairs(self) do local o = stead.ref(v); if not o then -- isObject(o) then -- compat - error ("No object: "..tostring(v)) + error ("No object: "..name.."["..tostring(ii).."]".." ("..tostring(type(v))..")") return false end if stead.deref(v) then