Skip to content

Commit 871b6ae

Browse files
author
Hugo Mercier
committed
[virtual layer] Improve error message
1 parent ba1d38c commit 871b6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/virtual/qgsvirtuallayersqlitehelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ namespace Sqlite
9595
int r = sqlite3_prepare_v2( db, ba.constData(), ba.size(), &stmt_, nullptr );
9696
if ( r )
9797
{
98-
QString err = QString( "Query preparation error on %1" ).arg( q );
98+
QString err = QString( "Query preparation error on %1: %2" ).arg( q ).arg( sqlite3_errmsg( db ) );
9999
throw std::runtime_error( err.toLocal8Bit().constData() );
100100
}
101101
}

0 commit comments

Comments
 (0)