mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix infinite recursion on GDScriptTests if a script cannot be reloaded.
This commit is contained in:
parent
b89c47bb85
commit
a6664af0d6
1 changed files with 2 additions and 0 deletions
|
|
@ -655,6 +655,8 @@ GDScriptTest::TestResult GDScriptTest::execute_test_code(bool p_is_generating) {
|
|||
result.status = GDTEST_LOAD_ERROR;
|
||||
result.output = "";
|
||||
result.passed = false;
|
||||
remove_print_handler(&_print_handler);
|
||||
remove_error_handler(&_error_handler);
|
||||
ERR_FAIL_V_MSG(result, "\nCould not reload script: '" + source_file + "'");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue