From ee4092d9d44f193b46b979f46ee7ba03213a1897 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Wed, 13 Sep 2023 06:15:17 +1000 Subject: [PATCH] Update PR * Update PR --- src/main.d | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main.d b/src/main.d index 69c2ef3f..dc191d14 100644 --- a/src/main.d +++ b/src/main.d @@ -688,7 +688,11 @@ int main(string[] cliArgs) { } // Exit application using exit scope - return EXIT_SUCCESS; + if (!syncEngineInstance.syncFailures) { + return EXIT_SUCCESS; + } else { + return EXIT_FAILURE; + } } void performUploadOnlySyncProcess(string localPath, Monitor filesystemMonitor = null) { @@ -882,21 +886,21 @@ void cleanupDryRunDatabaseFiles(string dryRunDatabaseFile) { // If the dry run database exists, clean this up if (exists(dryRunDatabaseFile)) { // remove the existing file - log.log("DRY-RUN: Removing items-dryrun.sqlite3 as it still exists for some reason"); + log.vdebug("DRY-RUN: Removing items-dryrun.sqlite3 as it still exists for some reason"); safeRemove(dryRunDatabaseFile); } // silent cleanup of shm files if it exists if (exists(dryRunShmFile)) { // remove items-dryrun.sqlite3-shm - log.log("DRY-RUN: Removing items-dryrun.sqlite3-shm as it still exists for some reason"); + log.vdebug("DRY-RUN: Removing items-dryrun.sqlite3-shm as it still exists for some reason"); safeRemove(dryRunShmFile); } // silent cleanup of wal files if it exists if (exists(dryRunWalFile)) { // remove items-dryrun.sqlite3-wal - log.log("DRY-RUN: Removing items-dryrun.sqlite3-wal as it still exists for some reason"); + log.vdebug("DRY-RUN: Removing items-dryrun.sqlite3-wal as it still exists for some reason"); safeRemove(dryRunWalFile); } }