mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Add extra logging for SQLITE_CANTOPEN errors #5633
(cherry picked from commit 05c1dcef9b)
This commit is contained in:
parent
2f915af690
commit
7eb8219419
@ -57,6 +57,10 @@ bool SqlDatabase::openHelper( const QString& filename, int sqliteFlags )
|
||||
|
||||
if( _errId != SQLITE_OK ) {
|
||||
qDebug() << "Error:" << _error << "for" << filename;
|
||||
if (_errId == SQLITE_CANTOPEN) {
|
||||
qDebug() << "CANTOPEN extended errcode: " << sqlite3_extended_errcode(_db);
|
||||
qDebug() << "CANTOPEN system errno: " << sqlite3_system_errno(_db);
|
||||
}
|
||||
close();
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user