Skip to content
Permalink
Browse files

More helpful log message when svg requests fail

  • Loading branch information
nyalldawson committed Mar 28, 2018
1 parent 7794144 commit 50241dcba40ea8830b64600765d2f1a7923ec7c2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology/qgssvgcache.cpp
@@ -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;

0 comments on commit 50241dc

Please sign in to comment.
You can’t perform that action at this time.