1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Only print message for get_modified_time() failure when in verbose mode

This error message was often displayed for no good reason when PCK
files were loaded in the editor.

Since file modification dates are secondary metadata, it's not
very important if it can't be retrieved successfully anyway.

(cherry picked from commit 5acb8a253e)
This commit is contained in:
Hugo Locurcio
2021-12-01 21:47:09 +01:00
committed by Rémi Verschelde
parent 9d509c735a
commit 4d4e972041
2 changed files with 4 additions and 2 deletions

View File

@@ -307,7 +307,8 @@ uint64_t FileAccessUnix::_get_modified_time(const String &p_file) {
if (!err) {
return flags.st_mtime;
} else {
ERR_FAIL_V_MSG(0, "Failed to get modified time for: " + p_file + ".");
print_verbose("Failed to get modified time for: " + p_file + "");
return 0;
};
}