From ae4a382dd2af3d62d087178ccda599c76e3813f2 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Wed, 7 Aug 2019 18:07:34 +0200 Subject: Improve error message in Node::remove_child() --- scene/main/node.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene') 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 ); -- cgit v1.2.3