diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-06-17 13:03:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 13:03:05 +0200 |
commit | 78944fef820b7df87ca73d89169e68639ceef8e9 (patch) | |
tree | a3716ead0ea9304613eb292314780e9bb4ee070b /modules/visual_script/visual_script.cpp | |
parent | a60e2085b64eb9f16dc275a49585b31e061b0e43 (diff) | |
parent | cceeb671db82c06ebcd3323065672e11a1613431 (diff) |
Merge pull request #61510 from Calinou/script-tweak-stack-overflow-message
Diffstat (limited to 'modules/visual_script/visual_script.cpp')
-rw-r--r-- | modules/visual_script/visual_script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp index 30b64d0a7b..c4fafb6676 100644 --- a/modules/visual_script/visual_script.cpp +++ b/modules/visual_script/visual_script.cpp @@ -1582,7 +1582,7 @@ Variant VisualScriptInstance::_call_internal(const StringName &p_method, void *p if (!found) { r_error.error = Callable::CallError::CALL_ERROR_INVALID_METHOD; - error_str = RTR("Found sequence bit but not the node in the stack, report bug!"); + error_str = RTR("Found sequence bit but not the node in the stack (please report)."); error = true; break; } @@ -1594,7 +1594,7 @@ Variant VisualScriptInstance::_call_internal(const StringName &p_method, void *p // Check for stack overflow. if (flow_stack_pos + 1 >= flow_max) { r_error.error = Callable::CallError::CALL_ERROR_INVALID_METHOD; - error_str = RTR("Stack overflow with stack depth:") + " " + itos(output); + error_str = vformat(RTR("Stack overflow (stack size: %s). Check for infinite recursion in your script."), output); error = true; break; } |