Skip to content

Commit b412fed

Browse files
fixes log_fatal to add the missing log to file
Previously this func would not log to the file, which means it wouldn't show in the godot.log during mod development. Note: Unlike the `"error"` condition, I've only used `push_error` instead of also using `printerr`, because `push_error` also seems to print the error already (incl. the `ERROR: ` prefix, which `printerr` doesn't include)
1 parent d4192ac commit b412fed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

addons/mod_loader/mod_loader_utils.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ static func _loader_log(message: String, mod_name: String, log_type: String = "i
6565

6666
match log_type.to_lower():
6767
"fatal-error":
68+
push_error(message)
6869
_write_to_log_file(log_message)
6970
_write_to_log_file(JSON.print(get_stack(), " "))
7071
assert(false, message)

0 commit comments

Comments
 (0)