summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-06-17 13:03:05 +0200
committerGitHub <noreply@github.com>2022-06-17 13:03:05 +0200
commit78944fef820b7df87ca73d89169e68639ceef8e9 (patch)
treea3716ead0ea9304613eb292314780e9bb4ee070b /modules/gdscript/gdscript.h
parenta60e2085b64eb9f16dc275a49585b31e061b0e43 (diff)
parentcceeb671db82c06ebcd3323065672e11a1613431 (diff)
Merge pull request #61510 from Calinou/script-tweak-stack-overflow-message
Diffstat (limited to 'modules/gdscript/gdscript.h')
-rw-r--r--modules/gdscript/gdscript.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h
index 80f187a375..0057962d5e 100644
--- a/modules/gdscript/gdscript.h
+++ b/modules/gdscript/gdscript.h
@@ -368,7 +368,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;
}