summaryrefslogtreecommitdiff
path: root/synchronization.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:21:41 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:21:41 +0200
commitd6301fca6b78db52d0d98f8e0799aba175ad2e59 (patch)
tree0380aac034e0d70ee058db07900d80ff20cfc81e /synchronization.cpp
parent5.7 (diff)
downloadFreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.tar.gz
FreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.tar.bz2
FreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.zip
5.8
Diffstat (limited to 'synchronization.cpp')
-rw-r--r--synchronization.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/synchronization.cpp b/synchronization.cpp
index 076111be..dcc119a5 100644
--- a/synchronization.cpp
+++ b/synchronization.cpp
@@ -1,7 +1,7 @@
// **************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under *
// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
-// * Copyright (C) ZenJu (zenju AT gmx DOT de) - All Rights Reserved *
+// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved *
// **************************************************************************
#include "synchronization.h"
@@ -9,7 +9,7 @@
#include <deque>
#include <stdexcept>
#include <wx/file.h> //get rid!?
-#include <wx+/format_unit.h>
+#include <zen/format_unit.h>
#include <zen/scope_guard.h>
#include <zen/process_priority.h>
#include <zen/file_handling.h>
@@ -1843,7 +1843,7 @@ void zen::synchronize(const TimeComp& timeStamp,
//PERF_START;
if (syncConfig.size() != folderCmp.size())
- throw std::logic_error("Programming Error: Contract violation!");
+ throw std::logic_error("Programming Error: Contract violation! " + std::string(__FILE__) + ":" + numberTo<std::string>(__LINE__));
//inform about the total amount of data that will be processed from now on
const SyncStatistics statisticsTotal(folderCmp);
@@ -2152,7 +2152,7 @@ void zen::synchronize(const TimeComp& timeStamp,
std::wstring warningMessage = _("A folder will be modified which is part of multiple folder pairs. Please review synchronization settings.") + L"\n";
for (auto i = conflictDirs.begin(); i != conflictDirs.end(); ++i)
warningMessage += L"\n" + fmtFileName(*i);
- callback.reportWarning(warningMessage, warnings.warningMultiFolderWriteAccess);
+ callback.reportWarning(warningMessage, warnings.warningFolderPairRaceCondition);
}
//-------------------end of basic checks------------------------------------------
bgstack15