more helpful errors

This commit is contained in:
Jill 2022-12-13 20:33:08 +03:00
parent 21dd09df40
commit b08cca38b7
1 changed files with 3 additions and 0 deletions

View File

@ -689,6 +689,9 @@
end
function addChild(frame, actor)
if not frame or not actor then
error('uranium: frame and actor must both Exist', 2)
end
if actorsInitializing then
error('uranium: cannot create frame-child associations during actor initialization', 2)
end