From c3fe5fffb491323fa85a55cf5502808dc0e36104 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sun, 24 Mar 2019 11:07:45 +0100 Subject: print a reason when dup() fails Signed-off-by: Rolf Eike Beer --- desktop-widgets/subsurfacewebservices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/subsurfacewebservices.cpp') diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp index 6e7e15991..3d65d7686 100644 --- a/desktop-widgets/subsurfacewebservices.cpp +++ b/desktop-widgets/subsurfacewebservices.cpp @@ -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 -- cgit v1.2.3-70-g09d2