Adding diagnostic info in case of my::RenameFileX error.

This commit is contained in:
Vladimir Byko-Ianko 2016-04-05 14:44:11 +03:00
parent 6fcb1e5510
commit 527712a401

View file

@ -280,7 +280,8 @@ class FileHttpRequest : public HttpRequest, public IHttpThreadCallback
// Rename finished file to it's original name.
if (Platform::IsFileExistsByFullPath(m_filePath))
(void)my::DeleteFileX(m_filePath);
CHECK(my::RenameFileX(m_filePath + DOWNLOADING_FILE_EXTENSION, m_filePath), ());
CHECK(my::RenameFileX(m_filePath + DOWNLOADING_FILE_EXTENSION, m_filePath),
(m_filePath, strerror(errno)));
DisableBackupForFile(m_filePath);
}