Skip to content
Permalink
Browse files

Spatialise error message fix (#3416)

* Fixed issue where opening an invalid spatialite db fails and gives and poor warning message

* Fix formatting
  • Loading branch information
timlinux committed Aug 22, 2016
1 parent 5a41748 commit c47b4ca99515cf7cef5ac9afaa22496be82e7af6
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/providers/spatialite/qgsspatialitesourceselect.cpp
@@ -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 ) );

0 comments on commit c47b4ca

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