Skip to content

Commit

Permalink
More helpful log message when svg requests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 29, 2018
1 parent 7794144 commit 50241dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgssvgcache.cpp
Expand Up @@ -455,7 +455,7 @@ QByteArray QgsSvgCache::getImageData( const QString &path ) const
if ( !status.isNull() && status.toInt() >= 400 )
{
QVariant phrase = reply->attribute( QNetworkRequest::HttpReasonPhraseAttribute );
QgsMessageLog::logMessage( tr( "SVG request error [status: %1 - reason phrase: %2]" ).arg( status.toInt() ).arg( phrase.toString() ), tr( "SVG" ) );
QgsMessageLog::logMessage( tr( "SVG request error [status: %1 - reason phrase: %2] for %3" ).arg( status.toInt() ).arg( phrase.toString(), path ), tr( "SVG" ) );

reply->deleteLater();
return mMissingSvg;
Expand Down

0 comments on commit 50241dc

Please sign in to comment.