Skip to content

Commit 78d8357

Browse files
authored
Merge pull request #9177 from mbernasocchi/master
Give more information when errors opening zip happens
2 parents 5ced04e + a643c87 commit 78d8357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsziputils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ bool QgsZipUtils::unzip( const QString &zipFilename, const QString &dir, QString
129129
}
130130
else
131131
{
132-
QString err = QObject::tr( "Error opening zip archive: '%1'" ).arg( z ? zip_strerror( z ) : zipFilename );
132+
QString err = QObject::tr( "Error opening zip archive: '%1' (Error code: %2)" ).arg( z ? zip_strerror( z ) : zipFilename, rc );
133133
QgsMessageLog::logMessage( err, QStringLiteral( "QgsZipUtils" ) );
134134
return false;
135135
}

0 commit comments

Comments
 (0)