Skip to content

Commit

Permalink
working?
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinthai authored and kelson42 committed Apr 8, 2024
1 parent 6d42179 commit 38d2171
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/contentmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,11 @@ void checkEnoughStorageAvailable(const kiwix::Book& book, QString targetDir)
if (bytesAvailable == -1 || book.getSize() > (unsigned long long) bytesAvailable) {
const QString &key = "download-storage-error-text";
QString details = KiwixApp::instance()->getText(key);
QString bytesLeft = " The number of bytes available is" +
QString::number(bytesAvailable);
QString destDirect = " The destinatinon directory is" + targetDir;
QString bytesLeft = QString("\nThe number of bytes available is %1").arg(bytesAvailable);
QString destDirect = QString("\nThe destination directory is %1").arg(targetDir);
details.append(bytesLeft);
deatils.append(destDirect);
throw ContentManagerError(gt("download-storage-error"),
details);
details.append(destDirect);
throw ContentManagerError(gt("download-storage-error"), details);
}
}

Expand Down

0 comments on commit 38d2171

Please sign in to comment.