Improve error message

This one is more user-friendly and grammatically correct.

Signed-off-by: AJ Jordan <alex@strugee.net>
This commit is contained in:
AJ Jordan 2021-05-27 00:43:18 -04:00 committed by Matthieu Gallien (Rebase PR Action)
parent 83498c30e2
commit a51d0a14db

View file

@ -780,7 +780,7 @@ void PropagateDownloadFile::slotGetFinished()
if (_tmpFile.size() == 0 && _item->_size > 0) { if (_tmpFile.size() == 0 && _item->_size > 0) {
FileSystem::remove(_tmpFile.fileName()); FileSystem::remove(_tmpFile.fileName());
done(SyncFileItem::NormalError, done(SyncFileItem::NormalError,
tr("The downloaded file is empty despite that the server announced it should have been %1.") tr("The downloaded file is empty, but the server said it should have been %1.")
.arg(Utility::octetsToString(_item->_size))); .arg(Utility::octetsToString(_item->_size)));
return; return;
} }