summaryrefslogtreecommitdiff
path: root/scene/main/node.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2019-08-07 18:07:34 +0200
committerMitch Curtis <mitch.curtis@qt.io>2019-08-08 09:38:32 +0200
commitae4a382dd2af3d62d087178ccda599c76e3813f2 (patch)
tree1e4aa03a693c0ba4848e8e9168e110573d0377dd /scene/main/node.cpp
parent7126654eafc5a50a782bfbcdcfcb243807662eab (diff)
Improve error message in Node::remove_child()
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r--scene/main/node.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index caa0da5d1f..8b08fbe2ff 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -1269,6 +1269,7 @@ void Node::remove_child(Node *p_child) {
}
}
+ ERR_EXPLAIN("Cannot remove child node " + p_child->to_string() + " as it is not in our list of children");
ERR_FAIL_COND(idx == -1);
//ERR_FAIL_COND( p_child->data.blocked > 0 );