Skip to content

Commit

Permalink
Modify message when cache file is not available yet (#8)
Browse files Browse the repository at this point in the history
* Modify message when cache file is not available yet

* Update ArkBaseApi.cpp

---------

Co-authored-by: Lethalinjectionx <[email protected]>
  • Loading branch information
Pelayori and Lethalinjectionx authored May 8, 2024
1 parent 3effd0f commit e673827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AsaApi/Core/Private/Ark/ArkBaseApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace API
if (ArkBaseApi::DownloadCacheFiles(downloadFile, localFile))
storedHash = Cache::readFromFile(keyCacheFile);
else
Log::GetLog()->error("Failed to download the Cache files.");
Log::GetLog()->warn("Ooops you are early, the cache has not finished cooking yet! Cache files usually take 10 minutes to be ready after an update. If more time has passed please contact developers.");

if (fs::exists(localFile))
fs::remove(localFile);
Expand Down Expand Up @@ -382,4 +382,4 @@ namespace API

rcon_connection->SendMessageW(rcon_packet->Id, 0, &reply);
}
} // namespace API
} // namespace API
1 change: 0 additions & 1 deletion AsaApi/Core/Private/Tools/Requests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@ namespace API
}
else
{
Log::GetLog()->error("Requested file '{}' failed with error: '{}'", url, response.getReason());
Poco::NullOutputStream null;
Poco::StreamCopier::copyStream(rs, null);
delete session;
Expand Down

0 comments on commit e673827

Please sign in to comment.