1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-12-27 07:06:00 +00:00

Display error if mod downloader failed to rename temp file

This commit is contained in:
fgenesis 2013-11-17 04:34:34 +01:00
parent bb515842a8
commit 711db4467f

View file

@ -512,7 +512,7 @@ void ModDL::NotifyMod(ModRequest *rq, NetEvent ev, size_t recvd, size_t total)
remove(archiveFile.c_str());
if(rename(rq->tempFilename.c_str(), archiveFile.c_str()))
{
debugLog("Could not rename mod " + rq->tempFilename + " to " + archiveFile);
dsq->screenMessage("Failed to rename mod\n" + rq->tempFilename + "\n to\n" + archiveFile);
return;
}
else