Skip to content

Commit c47b4ca

Browse files
authoredAug 22, 2016
Spatialise error message fix (#3416)
* Fixed issue where opening an invalid spatialite db fails and gives and poor warning message * Fix formatting
1 parent 5a41748 commit c47b4ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/providers/spatialite/qgsspatialitesourceselect.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,10 @@ void QgsSpatiaLiteSourceSelect::on_btnConnect_clicked()
461461
QMessageBox::critical( this, tr( "SpatiaLite getTableInfo Error" ),
462462
tr( "Failure exploring tables from: %1\n\n%2" ).arg( mSqlitePath, errCause ) );
463463
break;
464+
case QgsSpatiaLiteConnection::FailedToCheckMetadata:
465+
QMessageBox::critical( this, tr( "SpatiaLite metadata check failed" ),
466+
tr( "Failure getting table metadata ... is this really a SpatialLite database? %1\n\n%2" ).arg( mSqlitePath, errCause ) );
467+
break;
464468
default:
465469
QMessageBox::critical( this, tr( "SpatiaLite Error" ),
466470
tr( "Unexpected error when working with: %1\n\n%2" ).arg( mSqlitePath, errCause ) );

0 commit comments

Comments
 (0)
Please sign in to comment.