1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 22:19:07 +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()); remove(archiveFile.c_str());
if(rename(rq->tempFilename.c_str(), 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; return;
} }
else else