[Pkg-owncloud-commits] [owncloud-client] 34/135: Add extra logging for SQLITE_CANTOPEN errors #5633

Sandro Knauß hefee at debian.org
Sat Sep 9 14:28:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

hefee pushed a commit to branch master
in repository owncloud-client.

commit 7eb8219419fe9251ce62ded3bdae197fd796a66e
Author: Christian Kamm <mail at ckamm.de>
Date:   Tue Jun 6 12:59:57 2017 +0200

    Add extra logging for SQLITE_CANTOPEN errors #5633
    
    (cherry picked from commit 05c1dcef9b35a18d358ab307922eceff312e3304)
---
 src/libsync/ownsql.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/libsync/ownsql.cpp b/src/libsync/ownsql.cpp
index 7008ccf..6c6337f 100644
--- a/src/libsync/ownsql.cpp
+++ b/src/libsync/ownsql.cpp
@@ -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;
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list