mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix empty lines being added for errors with no script backtrace
This commit is contained in:
parent
1cf573f44d
commit
31b90246e7
12 changed files with 37 additions and 11 deletions
|
@ -153,7 +153,9 @@ static void handle_crash(int sig) {
|
|||
}
|
||||
if (!script_backtraces.is_empty()) {
|
||||
for (const Ref<ScriptBacktrace> &backtrace : script_backtraces) {
|
||||
print_error(backtrace->format());
|
||||
if (!backtrace->is_empty()) {
|
||||
print_error(backtrace->format());
|
||||
}
|
||||
}
|
||||
print_error("-- END OF SCRIPT BACKTRACE --");
|
||||
print_error("================================================================");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue