Skip to content
Browse files
Spatialite error message fix (#3416)
* Fixed issue where opening an invalid spatialite db fails and gives and poor warning message
  • Loading branch information
timlinux authored and m-kuhn committed Aug 29, 2016
1 parent a67f57e commit e1390adb1ced2cdd7fad78ef53a1b82a53485e25
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/providers/spatialite/qgsspatialitesourceselect.cpp
@@ -460,6 +460,10 @@ void QgsSpatiaLiteSourceSelect::on_btnConnect_clicked()
QMessageBox::critical( this, tr( "SpatiaLite getTableInfo Error" ),
tr( "Failure exploring tables from: %1\n\n%2" ).arg( mSqlitePath, errCause ) );
case QgsSpatiaLiteConnection::FailedToCheckMetadata:
QMessageBox::critical( this, tr( "SpatiaLite metadata check failed" ),
tr( "Failure getting table metadata ... is this really a SpatialLite database? %1\n\n%2" ).arg( mSqlitePath, errCause ) );
QMessageBox::critical( this, tr( "SpatiaLite Error" ),
tr( "Unexpected error when working with: %1\n\n%2" ).arg( mSqlitePath, errCause ) );

0 comments on commit e1390ad

Please sign in to comment.