Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 638de65 commit 577913e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/spatialite/qgsspatialitesourceselect.cpp
Expand Up @@ -461,6 +461,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 ) );
break;
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 ) );
break;
default:
QMessageBox::critical( this, tr( "SpatiaLite Error" ),
tr( "Unexpected error when working with: %1\n\n%2" ).arg( mSqlitePath, errCause ) );
Expand Down

0 comments on commit 577913e

Please sign in to comment.