From e65ec904b89766f34585ef7bddba0ab86c802442 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Thu, 27 Jun 2024 13:09:24 -0500 Subject: [PATCH] Remind developers about `memnew()` in crash message when missing binding callbacks --- src/classes/wrapped.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/classes/wrapped.cpp b/src/classes/wrapped.cpp index 52d44955..ffca4f97 100644 --- a/src/classes/wrapped.cpp +++ b/src/classes/wrapped.cpp @@ -84,8 +84,7 @@ Wrapped::Wrapped(const StringName p_godot_class) { godot::internal::gdextension_interface_object_set_instance_binding(_owner, godot::internal::token, this, _constructing_class_binding_callbacks); _constructing_class_binding_callbacks = nullptr; } else { - ERR_PRINT("BUG: create a Godot Object without binding callbacks."); - CRASH_NOW_MSG("BUG: create a Godot Object without binding callbacks."); + CRASH_NOW_MSG("BUG: Godot Object created without binding callbacks. Did you forget to use memnew()?"); } }