From 5acb8a253e40c8e8f86c2e58f9cc7e1a9a020ccc Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 1 Dec 2021 21:47:09 +0100 Subject: 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. --- drivers/windows/file_access_windows.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/windows') diff --git a/drivers/windows/file_access_windows.cpp b/drivers/windows/file_access_windows.cpp index 035c44a28c..ff81622408 100644 --- a/drivers/windows/file_access_windows.cpp +++ b/drivers/windows/file_access_windows.cpp @@ -335,7 +335,8 @@ uint64_t FileAccessWindows::_get_modified_time(const String &p_file) { if (rv == 0) { return st.st_mtime; } else { - ERR_FAIL_V_MSG(0, "Failed to get modified time for: " + file + "."); + print_verbose("Failed to get modified time for: " + p_file + ""); + return 0; } } -- cgit v1.2.3