From 527712a4012949b6836fe49dbbef11436a67afa5 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Tue, 5 Apr 2016 14:44:11 +0300 Subject: [PATCH] Adding diagnostic info in case of my::RenameFileX error. --- platform/http_request.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/http_request.cpp b/platform/http_request.cpp index b9adf31573..6fbfb95f51 100644 --- a/platform/http_request.cpp +++ b/platform/http_request.cpp @@ -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); }