mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Add some context to obscure warning, reduce message logs noise
This commit is contained in:
parent
06b3678a57
commit
301793678d
@ -355,7 +355,10 @@ void QgsLayoutItemPicture::refreshPicture( const QgsExpressionContext *context )
|
||||
{
|
||||
mHasExpressionError = true;
|
||||
source = QString();
|
||||
QgsMessageLog::logMessage( tr( "Picture expression eval error" ) );
|
||||
if ( scopedContext.feature().isValid() )
|
||||
{
|
||||
QgsMessageLog::logMessage( QStringLiteral( "%1: %2" ).arg( tr( "Picture expression eval error" ), sourceProperty.asExpression() ) );
|
||||
}
|
||||
}
|
||||
else if ( source.type() != QVariant::ByteArray )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user