Skip to content

Commit 5b28349

Browse files
committed
[wms] Fix another misleading error message
1 parent b94745b commit 5b28349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/wms/qgswmsprovider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3832,11 +3832,11 @@ void QgsWmsTiledImageDownloadHandler::tileReplyFinished()
38323832
int retry = reply->request().attribute( static_cast<QNetworkRequest::Attribute>( TileRetry ) ).toInt();
38333833
#endif
38343834

3835-
QgsDebugMsg( QString( "tile reply %1 (%2) tile:%3(retry %4) rect:%5,%6 %7,%8) fromcache:%9 error:%10 url:%11" )
3835+
QgsDebugMsg( QString( "tile reply %1 (%2) tile:%3(retry %4) rect:%5,%6 %7,%8) fromcache:%9 %10 url:%11" )
38363836
.arg( tileReqNo ).arg( mTileReqNo ).arg( tileNo ).arg( retry )
38373837
.arg( r.left(), 0, 'f' ).arg( r.bottom(), 0, 'f' ).arg( r.right(), 0, 'f' ).arg( r.top(), 0, 'f' )
38383838
.arg( fromCache )
3839-
.arg( reply->errorString(),
3839+
.arg( reply->error() == QNetworkReply::NoError ? QString() : QStringLiteral( "error: " ) + reply->errorString(),
38403840
reply->url().toString() )
38413841
);
38423842

0 commit comments

Comments
 (0)