Skip to content

Commit f0fcc55

Browse files
committed
replace printerr with log_fatal
1 parent cdc0962 commit f0fcc55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

addons/mod_loader/mod_manifest.gd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ static func is_name_or_namespace_valid(name: String) -> bool:
102102
re.compile("^[a-zA-Z0-9_]*$") # alphanumeric and _
103103

104104
if re.search(name) == null:
105-
printerr('Invalid name or namespace: "%s". You may only use letters, numbers and underscores.' % name)
105+
ModLoaderUtils.log_fatal('Invalid name or namespace: "%s". You may only use letters, numbers and underscores.' % name, LOG_NAME)
106106
return false
107107

108108
re.compile("^[a-zA-Z0-9_]{3,}$") # at least 3 long
109109
if re.search(name) == null:
110-
printerr('Invalid name or namespace: "%s". Must be longer than 3 characters.' % name)
110+
ModLoaderUtils.log_fatal('Invalid name or namespace: "%s". Must be longer than 3 characters.' % name, LOG_NAME)
111111
return false
112112

113113
return true
@@ -160,7 +160,7 @@ static func dict_has_fields(dict: Dictionary, required_fields: Array) -> bool:
160160
missing_fields.erase(key)
161161

162162
if missing_fields.size() > 0:
163-
printerr("Mod data is missing required fields: " + str(missing_fields))
163+
ModLoaderUtils.log_fatal("Mod manifest is missing required fields: %s" % missing_fields, LOG_NAME)
164164
return false
165165

166166
return true

0 commit comments

Comments
 (0)