Skip to content

Commit 50241dc

Browse files
committedMar 29, 2018
More helpful log message when svg requests fail
1 parent 7794144 commit 50241dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/symbology/qgssvgcache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ QByteArray QgsSvgCache::getImageData( const QString &path ) const
455455
if ( !status.isNull() && status.toInt() >= 400 )
456456
{
457457
QVariant phrase = reply->attribute( QNetworkRequest::HttpReasonPhraseAttribute );
458-
QgsMessageLog::logMessage( tr( "SVG request error [status: %1 - reason phrase: %2]" ).arg( status.toInt() ).arg( phrase.toString() ), tr( "SVG" ) );
458+
QgsMessageLog::logMessage( tr( "SVG request error [status: %1 - reason phrase: %2] for %3" ).arg( status.toInt() ).arg( phrase.toString(), path ), tr( "SVG" ) );
459459

460460
reply->deleteLater();
461461
return mMissingSvg;

0 commit comments

Comments
 (0)
Please sign in to comment.