Skip to content
Permalink
Browse files

[virtual layer] Improve error message

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Jun 28, 2016
1 parent ba1d38c commit 871b6ae4d753bb4b1400abbad4ea94fedf807762
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/virtual/qgsvirtuallayersqlitehelper.cpp
@@ -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() );
}
}

0 comments on commit 871b6ae

Please sign in to comment.
You can’t perform that action at this time.