From 7f23c2219379b96dc6b718ccb2ea61ec1fb620fc Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Tue, 28 Jul 2026 16:33:59 +0200 Subject: [PATCH] chore(common): print filename if error occurs in file locking check. For #10444. Signed-off-by: Camila Ayres --- src/common/filesystembase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filesystembase.cpp b/src/common/filesystembase.cpp index 9c60f2ef9fb27..e6c139c172f54 100644 --- a/src/common/filesystembase.cpp +++ b/src/common/filesystembase.cpp @@ -732,7 +732,7 @@ bool FileSystem::isFileLocked(const QString &fileName, LockMode mode) if (error == ERROR_SHARING_VIOLATION || error == ERROR_LOCK_VIOLATION) { return true; } else if (error != ERROR_FILE_NOT_FOUND && error != ERROR_PATH_NOT_FOUND) { - qCWarning(lcFileSystem()) << Q_FUNC_INFO << Utility::formatWinError(error); + qCWarning(lcFileSystem()) << Q_FUNC_INFO << Utility::formatWinError(error) << fileName; } } #else