Skip to content

Commit

Permalink
More helpful log message when svg requests fail
Browse files Browse the repository at this point in the history
(cherry-picked from 50241dc)
  • Loading branch information
nyalldawson committed Apr 2, 2018
1 parent 97b0ae6 commit 2f695b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgssvgcache.cpp
Original file line number Diff line number Diff line change
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 2f695b9

Please sign in to comment.