Merge pull request #98091 from AThousandShips/improve_err_prints_core

[Core] Improve error messages with `vformat`
This commit is contained in:
Thaddeus Crews 2024-10-31 20:14:36 -05:00
commit 163bf94d04
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
49 changed files with 292 additions and 292 deletions

View file

@ -114,7 +114,7 @@ void InputMap::get_argument_options(const StringName &p_function, int p_idx, Lis
#endif
void InputMap::add_action(const StringName &p_action, float p_deadzone) {
ERR_FAIL_COND_MSG(input_map.has(p_action), "InputMap already has action \"" + String(p_action) + "\".");
ERR_FAIL_COND_MSG(input_map.has(p_action), vformat("InputMap already has action \"%s\".", String(p_action)));
input_map[p_action] = Action();
static int last_id = 1;
input_map[p_action].id = last_id;