You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/JsonFileListLoader/JsonFileListLoader.gml
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ function JsonFileListLoader() constructor {
8
8
};
9
9
10
10
if (is_array(properties_to_read) == false || array_length(properties_to_read) == 0) {
11
-
debugl("Received invalid property name list");
11
+
log_error("Received invalid property name list");
12
12
return result;
13
13
}
14
14
@@ -20,7 +20,7 @@ function JsonFileListLoader() constructor {
20
20
var item_total = 0;
21
21
var file_path = working_directory + relative_file_path;
22
22
if(file_exists(file_path) == false){
23
-
debugl($"File does not exist at path {file_path}");
23
+
log_error($"File does not exist at path {file_path}");
24
24
return result;
25
25
}
26
26
file_buffer = buffer_load(file_path);
@@ -53,7 +53,7 @@ function JsonFileListLoader() constructor {
53
53
54
54
result.is_success = true;
55
55
56
-
debugl($"Successfully loaded {item_total} values from {relative_file_path}");
56
+
log_message($"Successfully loaded {item_total} values from {relative_file_path}");
57
57
} catch (_exception) {
58
58
handle_exception(_exception);
59
59
result.values = {}; // do not return incomplete/invalid data
@@ -77,7 +77,7 @@ function JsonFileListLoader() constructor {
77
77
};
78
78
79
79
if (is_string(property_to_read) == false || string_length(property_to_read) == 0) {
80
-
debugl("Received invalid property name, expected a string");
80
+
log_error("Received invalid property name, expected a string");
81
81
return result;
82
82
}
83
83
@@ -115,9 +115,9 @@ function JsonFileListLoader() constructor {
115
115
116
116
result.is_success = true;
117
117
118
-
//debugl($"Successfully loaded {property} value from {relative_file_path}");
118
+
//log_message($"Successfully loaded {property} value from {relative_file_path}");
119
119
} catch (_ex) {
120
-
debugl($"Could not properly parse file at {file_path}: {_ex}.");
120
+
log_error($"Could not properly parse file at {file_path}: {_ex}.");
121
121
scr_popup("Error Parsing JSON File", $"Could not properly parse file: #{file_path}.# Please check this file for typos or formatting errors.# # Full error message:# {_ex}", "debug");
122
122
result.value = {}; // do not return incomplete/invalid data
0 commit comments