diff --git a/src/Network/Resources.cpp b/src/Network/Resources.cpp index 99c75b3..316c426 100644 --- a/src/Network/Resources.cpp +++ b/src/Network/Resources.cpp @@ -571,11 +571,16 @@ void NewSyncResources(SOCKET Sock, const std::string& Mods, const std::vectorHash) { + error("Failed to write or download the entire file '" + PathToSaveTo + "' correctly (hash mismatch)"); + Terminate = true; + } } while (fs::file_size(PathToSaveTo) != ModInfoIter->FileSize && !Terminate); if (!Terminate) { if (!fs::exists(GetGamePath() + "mods/multiplayer")) {