From e32b8b3c7f3237acdc4113ccea8b5147a1bf95a3 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Wed, 11 Sep 2019 20:26:21 +1000 Subject: [PATCH] Move logging of 'initialisation' to actually when the attempt to initialise is performed (#656) * Move logging of 'initialisation' to actually when the attempt to initialise is performed --- src/main.d | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.d b/src/main.d index ed9896e8..e9bacdd0 100644 --- a/src/main.d +++ b/src/main.d @@ -517,20 +517,20 @@ int main(string[] args) selectiveSync.setFileMask(cfg.getValueString("skip_file")); // Initialize the sync engine - if (cfg.getValueString("get_file_link") == "") { - // Print out that we are initializing the engine only if we are not grabbing the file link - log.logAndNotify("Initializing the Synchronization Engine ..."); - } auto sync = new SyncEngine(cfg, oneDrive, itemDb, selectiveSync); - try { if (!initSyncEngine(sync)) { oneDrive.http.shutdown(); return EXIT_FAILURE; + } else { + if (cfg.getValueString("get_file_link") == "") { + // Print out that we are initializing the engine only if we are not grabbing the file link + log.logAndNotify("Initializing the Synchronization Engine ..."); + } } } catch (CurlException e) { if (!cfg.getValueBool("monitor")) { - log.log("\nNo internet connection."); + log.log("\nNo Internet connection."); oneDrive.http.shutdown(); return EXIT_FAILURE; }