mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Revise error message
Remove the period mark at the end of error message since `errc.message()` already contains one.
This commit is contained in:
parent
3fdb330bd9
commit
5ebbed8160
@ -1028,10 +1028,9 @@ QString TorrentImpl::error() const
|
|||||||
if (m_nativeStatus.flags & lt::torrent_flags::upload_mode)
|
if (m_nativeStatus.flags & lt::torrent_flags::upload_mode)
|
||||||
{
|
{
|
||||||
const QString writeErrorStr = tr("Couldn't write to file.");
|
const QString writeErrorStr = tr("Couldn't write to file.");
|
||||||
const QString uploadModeStr = tr("Torrent is currently in \"upload only\" mode.");
|
const QString uploadModeStr = tr("Torrent is now in \"upload only\" mode.");
|
||||||
const QString errorMessage = QString::fromLocal8Bit(m_lastFileError.error.message().c_str());
|
const QString errorMessage = tr("Reason:") + QLatin1Char(' ') + QString::fromLocal8Bit(m_lastFileError.error.message().c_str());
|
||||||
|
return QString::fromLatin1("%1 %2 %3").arg(writeErrorStr, errorMessage, uploadModeStr);
|
||||||
return writeErrorStr + QLatin1Char(' ') + errorMessage + QLatin1String(". ") + uploadModeStr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user