Skip to content

Commit 7818c9b

Browse files
committed
[wms] Fix another misleading error message
(cherry-picked from 5b28349)
1 parent 3e8df29 commit 7818c9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/providers/wms/qgswmsprovider.cpp

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

3829-
QgsDebugMsg( QString( "tile reply %1 (%2) tile:%3(retry %4) rect:%5,%6 %7,%8) fromcache:%9 error:%10 url:%11" )
3829+
QgsDebugMsg( QString( "tile reply %1 (%2) tile:%3(retry %4) rect:%5,%6 %7,%8) fromcache:%9 %10 url:%11" )
38303830
.arg( tileReqNo ).arg( mTileReqNo ).arg( tileNo ).arg( retry )
38313831
.arg( r.left(), 0, 'f' ).arg( r.bottom(), 0, 'f' ).arg( r.right(), 0, 'f' ).arg( r.top(), 0, 'f' )
38323832
.arg( fromCache )
3833-
.arg( reply->errorString(),
3833+
.arg( reply->error() == QNetworkReply::NoError ? QString() : QStringLiteral( "error: " ) + reply->errorString(),
38343834
reply->url().toString() )
38353835
);
38363836

0 commit comments

Comments
 (0)