Skip to content

Commit

Permalink
chore(i18n): Aligned error messages
Browse files Browse the repository at this point in the history
Reported at Transifex.

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
  • Loading branch information
rakekniven authored Dec 7, 2024
1 parent 97660a0 commit 3c5a836
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libsync/propagatorjobs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ void PropagateLocalRename::start()
if (fileAlreadyMoved && !deleteOldDbRecord(previousNameInDb)) {
return;
} else if (!deleteOldDbRecord(_item->_originalFile)) {
qCWarning(lcPropagateLocalRename) << "could not delete file from local DB" << _item->_originalFile;
qCWarning(lcPropagateLocalRename) << "Could not delete file from local DB" << _item->_originalFile;
return;
}

Expand Down Expand Up @@ -454,8 +454,8 @@ void PropagateLocalRename::start()

SyncJournalFileRecord oldRecord;
if (!propagator()->_journal->getFileRecord(oldFileName, &oldRecord)) {
qCWarning(lcPropagateLocalRename) << "could not get file from local DB" << oldFileName;
done(SyncFileItem::NormalError, tr("could not get file %1 from local DB").arg(oldFileNameString), OCC::ErrorCategory::GenericError);
qCWarning(lcPropagateLocalRename) << "Could not get file from local DB" << oldFileName;
done(SyncFileItem::NormalError, tr("Could not get file %1 from local DB").arg(oldFileNameString), OCC::ErrorCategory::GenericError);
return;
}
if (!propagator()->_journal->deleteFileRecord(oldFileName)) {
Expand Down Expand Up @@ -495,8 +495,8 @@ void PropagateLocalRename::start()
bool PropagateLocalRename::deleteOldDbRecord(const QString &fileName)
{
if (SyncJournalFileRecord oldRecord; !propagator()->_journal->getFileRecord(fileName, &oldRecord)) {
qCWarning(lcPropagateLocalRename) << "could not get file from local DB" << fileName;
done(SyncFileItem::NormalError, tr("could not get file %1 from local DB").arg(fileName), OCC::ErrorCategory::GenericError);
qCWarning(lcPropagateLocalRename) << "Could not get file from local DB" << fileName;
done(SyncFileItem::NormalError, tr("Could not get file %1 from local DB").arg(fileName), OCC::ErrorCategory::GenericError);
return false;
}
if (!propagator()->_journal->deleteFileRecord(fileName)) {
Expand Down

0 comments on commit 3c5a836

Please sign in to comment.