Skip to content

Commit

Permalink
[virtual layer] Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Jun 28, 2016
1 parent ba1d38c commit 871b6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/virtual/qgsvirtuallayersqlitehelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace Sqlite
int r = sqlite3_prepare_v2( db, ba.constData(), ba.size(), &stmt_, nullptr );
if ( r )
{
QString err = QString( "Query preparation error on %1" ).arg( q );
QString err = QString( "Query preparation error on %1: %2" ).arg( q ).arg( sqlite3_errmsg( db ) );
throw std::runtime_error( err.toLocal8Bit().constData() );
}
}
Expand Down

0 comments on commit 871b6ae

Please sign in to comment.