Skip to content

Commit 70775f0

Browse files
committed
Add debug message to transaction
1 parent 842c17c commit 70775f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/qgstransaction.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ bool QgsTransaction::addLayer( const QString& layerId )
123123
//connection string not compatible
124124
if ( QgsDataSourceURI( layer->source() ).connectionInfo() != mConnString )
125125
{
126+
QgsDebugMsg( QString( "Couldn't start transaction because connection string for layer %1 : '%2' does not match '%3'" ).arg(
127+
layerId, QgsDataSourceURI( layer->source() ).connectionInfo(), mConnString ) );
126128
return false;
127129
}
128130

0 commit comments

Comments
 (0)