more helpful errors
This commit is contained in:
parent
21dd09df40
commit
b08cca38b7
3
main.xml
3
main.xml
|
@ -689,6 +689,9 @@
|
||||||
end
|
end
|
||||||
|
|
||||||
function addChild(frame, actor)
|
function addChild(frame, actor)
|
||||||
|
if not frame or not actor then
|
||||||
|
error('uranium: frame and actor must both Exist', 2)
|
||||||
|
end
|
||||||
if actorsInitializing then
|
if actorsInitializing then
|
||||||
error('uranium: cannot create frame-child associations during actor initialization', 2)
|
error('uranium: cannot create frame-child associations during actor initialization', 2)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue