From 0716cbe1663215e0792c9706f4cececfed29ed9c Mon Sep 17 00:00:00 2001 From: luisangelsm Date: Sun, 12 Apr 2026 12:42:59 +0200 Subject: [PATCH] Add some error logs when synchronizing progress can't open the db --- YACReaderLibrary/db_helper.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/YACReaderLibrary/db_helper.cpp b/YACReaderLibrary/db_helper.cpp index 9e8afe14..37302a25 100644 --- a/YACReaderLibrary/db_helper.cpp +++ b/YACReaderLibrary/db_helper.cpp @@ -1097,6 +1097,11 @@ QMap> DBHelper::updateFromRemoteClient(const QMap &comics) { QSqlDatabase db = DataBaseManagement::loadDatabase(LibraryPaths::libraryDataPath(libraryPath)); + if (!db.isValid()) { + QLOG_ERROR() << "updateFromRemoteClientWithHash: could not open database for library" << libraryPath; + continue; + } + db.transaction(); QSqlQuery updateComicInfo(db);