diff options
author | RedworkDE <10944644+RedworkDE@users.noreply.github.com> | 2023-05-18 00:46:13 +0200 |
---|---|---|
committer | RedworkDE <10944644+RedworkDE@users.noreply.github.com> | 2023-05-18 00:46:27 +0200 |
commit | 9c9fd9ffbf6d4961b0909eef354de8098ad35f83 (patch) | |
tree | ea86b4ff2cc4fa31cd4d34046a4643393fae8e76 /core/object/object.cpp | |
parent | da21cb7042b09de24964b9bd5a1a8e1d93ab4b8b (diff) | |
download | redot-engine-9c9fd9ffbf6d4961b0909eef354de8098ad35f83.tar.gz |
Improve error message when disconnecting callable from signal it was not connected to
Diffstat (limited to 'core/object/object.cpp')
-rw-r--r-- | core/object/object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp index 5a34328ec4..f42d604832 100644 --- a/core/object/object.cpp +++ b/core/object/object.cpp @@ -1350,7 +1350,7 @@ bool Object::_disconnect(const StringName &p_signal, const Callable &p_callable, } ERR_FAIL_COND_V_MSG(!s, false, vformat("Disconnecting nonexistent signal '%s' in %s.", p_signal, to_string())); - ERR_FAIL_COND_V_MSG(!s->slot_map.has(*p_callable.get_base_comparator()), false, "Disconnecting nonexistent signal '" + p_signal + "', callable: " + p_callable + "."); + ERR_FAIL_COND_V_MSG(!s->slot_map.has(*p_callable.get_base_comparator()), false, "Attempt to disconnect a nonexistent connection from '" + to_string() + "'. Signal: '" + p_signal + "', callable: '" + p_callable + "'."); SignalData::Slot *slot = &s->slot_map[*p_callable.get_base_comparator()]; |