diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-03-13 10:19:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 10:19:30 +0100 |
commit | 5002f6de84cd188a92b9e10debbf196b399973ac (patch) | |
tree | b9f4c0e5dc8b67f4816ea6460e2b9aefbec8899b /core/io | |
parent | e147be6031af3d13ed09fd76bdc34b3f1e8a444e (diff) | |
parent | 33ae58710b2ba63b8c238043fcc093f3dc7e1106 (diff) |
Merge pull request #36599 from AndreaCatania/gen_rpc_data_export
Generates the rpc and rset info for exported GDScript.
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/multiplayer_api.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/multiplayer_api.cpp b/core/io/multiplayer_api.cpp index 4b864f0dd7..c29df07624 100644 --- a/core/io/multiplayer_api.cpp +++ b/core/io/multiplayer_api.cpp @@ -874,7 +874,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 |