summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorAndrea Catania <info@andreacatania.com>2020-02-27 16:06:39 +0100
committerAndrea Catania <info@andreacatania.com>2020-02-28 12:39:18 +0100
commit33ae58710b2ba63b8c238043fcc093f3dc7e1106 (patch)
tree13ed33504e81ffb3256f53cfb0fa2833b396ac23 /core/io
parented0f1940cbdbe470da85f446f315ee12897038a1 (diff)
Generates the rpc and rset info for exported GDScript.
Improved the send rpc log message when fail. This work has been kindly sponsored by IMVU.
Diffstat (limited to 'core/io')
-rw-r--r--core/io/multiplayer_api.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/multiplayer_api.cpp b/core/io/multiplayer_api.cpp
index 2aef0a3274..3d3c105528 100644
--- a/core/io/multiplayer_api.cpp
+++ b/core/io/multiplayer_api.cpp
@@ -863,7 +863,8 @@ void MultiplayerAPI::_send_rpc(Node *p_from, int p_to, bool p_unreliable, bool p
if (method_id == UINT16_MAX && p_from->get_script_instance()) {
method_id = p_from->get_script_instance()->get_rpc_method_id(p_name);
}
- ERR_FAIL_COND_MSG(method_id == UINT16_MAX, "Unable to take the `method_id` for the function:" + p_name + ". this can happen only if this method is not marked as `remote`.");
+ ERR_FAIL_COND_MSG(method_id == UINT16_MAX,
+ vformat("Unable to take the `method_id` for the function \"%s\" at path: \"%s\". This happens when the method is not marked as `remote`.", p_name, p_from->get_path()));
if (method_id <= UINT8_MAX) {
// The ID fits in 1 byte