diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-10-11 16:17:49 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-10-30 15:55:51 +0100 |
commit | 38f9769bc6d560373df961880f99aaaafaae00d9 (patch) | |
tree | 4bb21478d3cefde5c03c864bbaf65a31c1f7576a /core/input | |
parent | 8004c7524fb9f43425c4d6f614410a76678e0f7c (diff) | |
download | redot-engine-38f9769bc6d560373df961880f99aaaafaae00d9.tar.gz |
[Core] Improve error messages with `vformat`
Diffstat (limited to 'core/input')
-rw-r--r-- | core/input/input_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/input/input_map.cpp b/core/input/input_map.cpp index 5b9377fe59..6378f18545 100644 --- a/core/input/input_map.cpp +++ b/core/input/input_map.cpp @@ -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; |