mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Display more useful information in log window when an I/O error occurs
I/O errors are now reported in nox version too
This commit is contained in:
parent
0f4f108eb5
commit
4d5001d18d
2 changed files with 4 additions and 6 deletions
|
@ -1964,6 +1964,8 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
|||
if(h.is_valid()) {
|
||||
h.auto_managed(false);
|
||||
std::cerr << "File Error: " << p->message().c_str() << std::endl;
|
||||
addConsoleMessage(tr("An I/O error occured, '%1' paused.").arg(h.name()));
|
||||
addConsoleMessage(tr("Reason: %1").arg(misc::toQString(p->message())));
|
||||
if(h.is_valid()) {
|
||||
emit fullDiskError(h, misc::toQString(p->message()));
|
||||
h.pause();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue