Skip to content

Commit 7f23c22

Browse files
camilasanclaucambra
authored andcommitted
chore(common): print filename if error occurs in file locking check.
For #10444. Signed-off-by: Camila Ayres <hello@camilasan.com>
1 parent 96d4abb commit 7f23c22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/filesystembase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ bool FileSystem::isFileLocked(const QString &fileName, LockMode mode)
732732
if (error == ERROR_SHARING_VIOLATION || error == ERROR_LOCK_VIOLATION) {
733733
return true;
734734
} else if (error != ERROR_FILE_NOT_FOUND && error != ERROR_PATH_NOT_FOUND) {
735-
qCWarning(lcFileSystem()) << Q_FUNC_INFO << Utility::formatWinError(error);
735+
qCWarning(lcFileSystem()) << Q_FUNC_INFO << Utility::formatWinError(error) << fileName;
736736
}
737737
}
738738
#else

0 commit comments

Comments
 (0)