Browse Source

Merge pull request #12016 from Chocobo1/errMsg

Include resume folder path in exception message
adaptive-webui-19844
sledgehammer999 5 years ago committed by GitHub
parent
commit
385d7247b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/base/bittorrent/session.cpp

6
src/base/bittorrent/session.cpp

@ -3961,11 +3961,13 @@ void Session::initResumeFolder() @@ -3961,11 +3961,13 @@ void Session::initResumeFolder()
if (resumeFolderDir.exists() || resumeFolderDir.mkpath(resumeFolderDir.absolutePath())) {
m_resumeFolderLock->setFileName(resumeFolderDir.absoluteFilePath("session.lock"));
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 {
throw RuntimeError {tr("Cannot create torrent resume folder.")};
throw RuntimeError {tr("Cannot create torrent resume folder: \"%1\"")
.arg(Utils::Fs::toNativePath(m_resumeFolderPath))};
}
}

Loading…
Cancel
Save