mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 12:14:44 +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
|
|
@ -1228,7 +1228,9 @@ void UnixTerminalLogger::log_error(const char *p_function, const char *p_file, i
|
|||
logf_error("%s%sat: %s (%s:%i)%s\n", gray, indent, p_function, p_file, p_line, reset);
|
||||
|
||||
for (const Ref<ScriptBacktrace> &backtrace : p_script_backtraces) {
|
||||
logf_error("%s%s%s\n", gray, backtrace->format(strlen(indent)).utf8().get_data(), reset);
|
||||
if (!backtrace->is_empty()) {
|
||||
logf_error("%s%s%s\n", gray, backtrace->format(strlen(indent)).utf8().get_data(), reset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue