summaryrefslogtreecommitdiff
path: root/drivers/unix
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-12-01 21:47:09 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-12-01 21:47:09 +0100
commit5acb8a253e40c8e8f86c2e58f9cc7e1a9a020ccc (patch)
tree3be31a43fa67e3af1fb92d51147aa26a012555f1 /drivers/unix
parent1c5a8894aa450876447764037af852f97238d9c0 (diff)
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.
Diffstat (limited to 'drivers/unix')
-rw-r--r--drivers/unix/file_access_unix.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/unix/file_access_unix.cpp b/drivers/unix/file_access_unix.cpp
index f07c654bd6..dc21d1d8e5 100644
--- a/drivers/unix/file_access_unix.cpp
+++ b/drivers/unix/file_access_unix.cpp
@@ -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;
};
}