From 5ad177b9ce2d509d71f655e973b14a40fb58f6e5 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Thu, 26 Jun 2014 17:35:47 +0100 Subject: [PATCH] Improved UI updater error message if cloning. --- src/backend/network.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/network.cpp b/src/backend/network.cpp index 53959f6b..72e3c23c 100644 --- a/src/backend/network.cpp +++ b/src/backend/network.cpp @@ -197,10 +197,9 @@ namespace loot { checkout_opts.paths.count = 1; // Now try to access the repository if it exists, or clone one if it doesn't. - git.ui_message = "An error occurred while trying to access the local masterlist repository."; - BOOST_LOG_TRIVIAL(trace) << "Attempting to open the Git repository at: " << repo_path; if (!isRepository(repo_path)) { + git.ui_message = "An error occurred while trying to clone the remote masterlist repository."; // Clone the remote repository. BOOST_LOG_TRIVIAL(info) << "Repository doesn't exist, cloning the remote repository."; @@ -245,6 +244,7 @@ namespace loot { } else { // Repository exists: check settings are correct, then pull updates. + git.ui_message = "An error occurred while trying to access the local masterlist repository."; // Open the repository. BOOST_LOG_TRIVIAL(info) << "Existing repository found, attempting to open it.";