1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Improve stack overflow error message in GDScript and VisualScript

Stack overflow errors are generally the result of infinite recursion
within a script.
This commit is contained in:
Hugo Locurcio
2022-05-28 23:11:37 +02:00
parent 68b86220c8
commit cceeb671db
3 changed files with 5 additions and 5 deletions

View File

@@ -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;
}