1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Log save_resume_data_failed_alert

This commit is contained in:
Chocobo1 2019-06-11 02:11:28 +08:00
parent 4e87aebf55
commit 7d860b6c24
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -1725,10 +1725,14 @@ void TorrentHandle::handleSaveResumeDataFailedAlert(const lt::save_resume_data_f
{ {
// if torrent has no metadata we should save dummy fastresume data // if torrent has no metadata we should save dummy fastresume data
// containing Magnet URI and qBittorrent own resume data only // containing Magnet URI and qBittorrent own resume data only
if (p->error.value() == lt::errors::no_metadata) if (p->error.value() == lt::errors::no_metadata) {
handleSaveResumeDataAlert(nullptr); handleSaveResumeDataAlert(nullptr);
else }
else {
LogMsg(tr("Save resume data failed. Torrent: \"%1\", error: \"%2\"")
.arg(name(), QString::fromStdString(p->error.message())), Log::CRITICAL);
m_session->handleTorrentResumeDataFailed(this); m_session->handleTorrentResumeDataFailed(this);
}
} }
void TorrentHandle::handleFastResumeRejectedAlert(const lt::fastresume_rejected_alert *p) void TorrentHandle::handleFastResumeRejectedAlert(const lt::fastresume_rejected_alert *p)