[Pkg-owncloud-commits] [owncloud-client] 473/498: OwnSql: Show potential error on close #3421
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 049d49eba8e6d81d262104dbe617ad2f5cabbe76
Author: Markus Goetz <markus at woboq.com>
Date: Thu Aug 6 15:47:38 2015 +0200
OwnSql: Show potential error on close #3421
---
src/libsync/ownsql.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/libsync/ownsql.cpp b/src/libsync/ownsql.cpp
index ba74059..d45630b 100644
--- a/src/libsync/ownsql.cpp
+++ b/src/libsync/ownsql.cpp
@@ -136,6 +136,9 @@ void SqlDatabase::close()
{
if( _db ) {
SQLITE_DO(sqlite3_close(_db) );
+ if (_errId != SQLITE_OK) {
+ qWarning() << "ERROR When closing DB" << _error << sqlite3_db_filename(_db, 0);
+ }
_db = 0;
}
}
--
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