Skip to content

Commit e1390ad

Browse files
timlinuxm-kuhn
authored andcommitted
Spatialite error message fix (#3416)
* Fixed issue where opening an invalid spatialite db fails and gives and poor warning message
1 parent a67f57e commit e1390ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/providers/spatialite/qgsspatialitesourceselect.cpp

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

0 commit comments

Comments
 (0)