mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +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
|
@ -52,6 +52,7 @@ void ScriptBacktrace::_store_variables(const List<String> &p_names, const List<V
|
|||
void ScriptBacktrace::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_language_name"), &ScriptBacktrace::get_language_name);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("is_empty"), &ScriptBacktrace::is_empty);
|
||||
ClassDB::bind_method(D_METHOD("get_frame_count"), &ScriptBacktrace::get_frame_count);
|
||||
ClassDB::bind_method(D_METHOD("get_frame_function", "index"), &ScriptBacktrace::get_frame_function);
|
||||
ClassDB::bind_method(D_METHOD("get_frame_file", "index"), &ScriptBacktrace::get_frame_file);
|
||||
|
@ -173,7 +174,7 @@ Variant ScriptBacktrace::get_member_variable_value(int p_frame_index, int p_vari
|
|||
}
|
||||
|
||||
String ScriptBacktrace::format(int p_indent_all, int p_indent_frames) const {
|
||||
if (stack_frames.is_empty()) {
|
||||
if (is_empty()) {
|
||||
return String();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue