Skip to content

Commit

Permalink
Merge pull request #9177 from mbernasocchi/master
Browse files Browse the repository at this point in the history
Give more information when errors opening zip happens
  • Loading branch information
m-kuhn committed Feb 18, 2019
2 parents 5ced04e + a643c87 commit 78d8357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsziputils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ bool QgsZipUtils::unzip( const QString &zipFilename, const QString &dir, QString
}
else
{
QString err = QObject::tr( "Error opening zip archive: '%1'" ).arg( z ? zip_strerror( z ) : zipFilename );
QString err = QObject::tr( "Error opening zip archive: '%1' (Error code: %2)" ).arg( z ? zip_strerror( z ) : zipFilename, rc );
QgsMessageLog::logMessage( err, QStringLiteral( "QgsZipUtils" ) );
return false;
}
Expand Down

0 comments on commit 78d8357

Please sign in to comment.