Skip to content

Commit 9fb1d4f

Browse files
committedJun 1, 2016
Fix warning
1 parent fb49f70 commit 9fb1d4f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/providers/mssql/qgsmssqlprovider.cpp‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2153,8 +2153,10 @@ QGISEXTERN QString loadStyle( const QString& uri, QString& errCause )
21532153

21542154
if ( !query.exec( selectQmlQuery ) )
21552155
{
2156-
QgsDebugMsg( query.lastError().text() );
2157-
QgsDebugMsg("Load of Style failed");
2156+
QgsDebugMsg("Load of style failed");
2157+
QString msg = query.lastError().text();
2158+
errCause = msg;
2159+
QgsDebugMsg( msg );
21582160
return QString();
21592161
}
21602162
if ( query.isActive() && query.next())

0 commit comments

Comments
 (0)
Please sign in to comment.