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:
Christophe Dumez 2010-02-22 19:30:36 +00:00
parent 0f4f108eb5
commit 4d5001d18d
2 changed files with 4 additions and 6 deletions

View file

@ -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();