summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-03-01 18:37:53 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-03-01 18:37:53 +0300
commitafb3d3d1a76f5728755753abcf02e402c0f24569 (patch)
treec641a9523a28e6d097de8d5911e2d4fc36fd52e8 /plugins/Dbx_sqlite
parent8570b398cd7f852f5dc3e363717827f8981dc6fe (diff)
Dbx_sqlite: more logs for backup operation
Diffstat (limited to 'plugins/Dbx_sqlite')
-rwxr-xr-xplugins/Dbx_sqlite/src/dbintf.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp
index f58f9888d1..76e83c277f 100755
--- a/plugins/Dbx_sqlite/src/dbintf.cpp
+++ b/plugins/Dbx_sqlite/src/dbintf.cpp
@@ -163,11 +163,12 @@ BOOL CDbxSQLite::Backup(LPCWSTR profile)
sqlite3_backup *backup = sqlite3_backup_init(database, "main", m_db, "main");
if (backup == nullptr) {
sqlite3_close(database);
+ DeleteFileW(profile);
return ERROR_BACKUP_CONTROLLER;
}
- sqlite3_backup_step(backup, -1);
- sqlite3_backup_finish(backup);
+ logError(sqlite3_backup_step(backup, -1), __FILE__, __LINE__);
+ logError(sqlite3_backup_finish(backup), __FILE__, __LINE__);
sqlite3_close(database);
return 0;
}