Fix up text formatting as path's no longer get quoted

This commit is contained in:
Alexander Bock
2024-03-08 20:19:06 +01:00
parent fff6f8a627
commit 9a6fe47d17
119 changed files with 457 additions and 458 deletions

View File

@@ -372,7 +372,7 @@ HttpSynchronization::trySyncFromUrl(std::string listUrl) {
for (const std::unique_ptr<HttpFileDownload>& d : downloads) {
d->wait();
if (!d->hasSucceeded()) {
LERROR(fmt::format("Error downloading file from URL {}", d->url()));
LERROR(fmt::format("Error downloading file from URL '{}'", d->url()));
failed = true;
continue;
}
@@ -391,7 +391,7 @@ HttpSynchronization::trySyncFromUrl(std::string listUrl) {
std::error_code ec;
std::filesystem::rename(tempName, originalName, ec);
if (ec) {
LERROR(fmt::format("Error renaming {} to {}", tempName, originalName));
LERROR(fmt::format("Error renaming '{}' to '{}'", tempName, originalName));
failed = true;
}
@@ -408,14 +408,14 @@ HttpSynchronization::trySyncFromUrl(std::string listUrl) {
if (is64) {
LERROR(fmt::format(
"Error while unzipping {}: Zip64 archives are not supported", source
"Error while unzipping '{}': Zip64 archives are not supported", source
));
continue;
}
int ret = zip_extract(source.c_str(), dest.c_str(), nullptr, nullptr);
if (ret != 0) {
LERROR(fmt::format("Error {} while unzipping {}", ret, source));
LERROR(fmt::format("Error '{}' while unzipping '{}'", ret, source));
continue;
}

View File

@@ -234,9 +234,7 @@ bool UrlSynchronization::isEachFileValid() {
"{}: File is valid to {} but asset specifies SecondsUntilResync = {} "
"Did you mean to re-download the file? If so, remove file from sync "
"folder to resync",
_identifier,
fileIsValidToDate,
_secondsUntilResync
_identifier, fileIsValidToDate, _secondsUntilResync
));
}
@@ -313,7 +311,7 @@ bool UrlSynchronization::trySyncUrls() {
std::filesystem::path destination = directory() / (_filename + ".tmp");
if (sizeData.find(url) != sizeData.end()) {
LWARNING(fmt::format("{}: Duplicate entry for {}", _identifier, url));
LWARNING(fmt::format("{}: Duplicate entry for '{}'", _identifier, url));
continue;
}
@@ -362,7 +360,7 @@ bool UrlSynchronization::trySyncUrls() {
d->wait();
if (!d->hasSucceeded()) {
failed = true;
LERROR(fmt::format("Error downloading file from URL {}", d->url()));
LERROR(fmt::format("Error downloading file from URL: {}", d->url()));
continue;
}
@@ -383,7 +381,7 @@ bool UrlSynchronization::trySyncUrls() {
if (ec) {
LERRORC(
"URLSynchronization",
fmt::format("Error renaming file {} to {}", tempName, originalName)
fmt::format("Error renaming file '{}' to '{}'", tempName, originalName)
);
failed = true;