print a reason when dup() fails

Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
Rolf Eike Beer 2019-03-24 11:07:45 +01:00 committed by Dirk Hohndel
parent 9ea32a0158
commit c3fe5fffb4

View file

@ -677,7 +677,7 @@ void DivelogsDeWebServices::downloadFinished()
::close(duppedfd);
} else {
QMessageBox::critical(this, tr("Problem with download"),
tr("The archive could not be opened:\n"));
tr("The archive could not be opened:\n%1").arg(QString::fromLocal8Bit(strerror(errno))));
return;
}
#else