[network/kio-extras] archive: archive: Print errorString when opening archive failed

Kai Uwe Broulik <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit e997747e5fe32221ebd528c4259ebe9b406db2e3 by Kai Uwe Broulik.
Committed on 16/08/2026 at 11:40.
Pushed by broulik into branch 'master'.

archive: Print errorString when opening archive failed

Should give more of a clue as to why it failed.

M  +1    -1    archive/kio_archivebase.cpp

https://invent.kde.org/network/kio-extras/-/commit/e997747e5fe32221ebd528c4259ebe9b406db2e3

diff --git a/archive/kio_archivebase.cpp b/archive/kio_archivebase.cpp
index a58aa0af7..303879db8 100644
--- a/archive/kio_archivebase.cpp
+++ b/archive/kio_archivebase.cpp
@@ -150,7 +150,7 @@ bool ArchiveProtocolBase::checkNewFile(const QUrl &url, QString &path, KIO::Erro
     }
 
     if (!m_archiveFile->open(QIODevice::ReadOnly)) {
-        qCDebug(KIO_ARCHIVE_LOG) << "Opening" << archiveFile << "failed.";
+        qCDebug(KIO_ARCHIVE_LOG) << "Opening" << archiveFile << "failed:" << m_archiveFile->errorString();
         delete m_archiveFile;
         m_archiveFile = nullptr;
         errorNum = KIO::ERR_CANNOT_OPEN_FOR_READING;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.