summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-02-28 14:32:36 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-02-28 14:32:36 +0100
commit32ccf306f9a820e2ac5811de7c12e99a736fdf05 (patch)
tree41edf077bcafa3c959a417aa4700318d483ff680 /core
parent09a6a2d8f83473b4893b4dd04ff31972e267d5d6 (diff)
ConnectionsDock: Fix error when parsing CustomCallable connections
Diffstat (limited to 'core')
-rw-r--r--core/callable.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/callable.cpp b/core/callable.cpp
index 34b79cea10..4a5ae3a248 100644
--- a/core/callable.cpp
+++ b/core/callable.cpp
@@ -73,9 +73,11 @@ ObjectID Callable::get_object_id() const {
}
}
StringName Callable::get_method() const {
- ERR_FAIL_COND_V(is_custom(), StringName());
+ ERR_FAIL_COND_V_MSG(is_custom(), StringName(),
+ vformat("Can't get method on CallableCustom \"%s\".", operator String()));
return method;
}
+
uint32_t Callable::hash() const {
if (is_custom()) {
return custom->hash();