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.h | |
parent | a60e2085b64eb9f16dc275a49585b31e061b0e43 (diff) | |
parent | cceeb671db82c06ebcd3323065672e11a1613431 (diff) | |
download | redot-engine-78944fef820b7df87ca73d89169e68639ceef8e9.tar.gz |
Merge pull request #61510 from Calinou/script-tweak-stack-overflow-message
Diffstat (limited to 'modules/visual_script/visual_script.h')
-rw-r--r-- | modules/visual_script/visual_script.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/visual_script/visual_script.h b/modules/visual_script/visual_script.h index 0f3b8de3fc..c2e4d0e597 100644 --- a/modules/visual_script/visual_script.h +++ b/modules/visual_script/visual_script.h @@ -522,7 +522,7 @@ public: if (_debug_call_stack_pos >= _debug_max_call_stack) { // Stack overflow. - _debug_error = "Stack Overflow (Stack Size: " + itos(_debug_max_call_stack) + ")"; + _debug_error = vformat("Stack overflow (stack size: %s). Check for infinite recursion in your script.", _debug_max_call_stack); EngineDebugger::get_script_debugger()->debug(this); return; } @@ -545,7 +545,7 @@ public: } if (_debug_call_stack_pos == 0) { - _debug_error = "Stack Underflow (Engine Bug)"; + _debug_error = "Stack underflow (engine bug), please report."; EngineDebugger::get_script_debugger()->debug(this); return; } |