mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Merge pull request #12016 from Chocobo1/errMsg
Include resume folder path in exception message
This commit is contained in:
commit
385d7247b7
1 changed files with 4 additions and 2 deletions
|
@ -3961,11 +3961,13 @@ void Session::initResumeFolder()
|
||||||
if (resumeFolderDir.exists() || resumeFolderDir.mkpath(resumeFolderDir.absolutePath())) {
|
if (resumeFolderDir.exists() || resumeFolderDir.mkpath(resumeFolderDir.absolutePath())) {
|
||||||
m_resumeFolderLock->setFileName(resumeFolderDir.absoluteFilePath("session.lock"));
|
m_resumeFolderLock->setFileName(resumeFolderDir.absoluteFilePath("session.lock"));
|
||||||
if (!m_resumeFolderLock->open(QFile::WriteOnly)) {
|
if (!m_resumeFolderLock->open(QFile::WriteOnly)) {
|
||||||
throw RuntimeError {tr("Cannot write to torrent resume folder.")};
|
throw RuntimeError {tr("Cannot write to torrent resume folder: \"%1\"")
|
||||||
|
.arg(Utils::Fs::toNativePath(m_resumeFolderPath))};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw RuntimeError {tr("Cannot create torrent resume folder.")};
|
throw RuntimeError {tr("Cannot create torrent resume folder: \"%1\"")
|
||||||
|
.arg(Utils::Fs::toNativePath(m_resumeFolderPath))};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue