diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:33 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:33 +0200 |
commit | 6fcfe73ca751f068978ce201094b17cf2dfe4d20 (patch) | |
tree | e7d85e8f9057430b480cd0e2f5ccb43c9d2ef8f8 /RealtimeSync/watcher.cpp | |
parent | 3.15 (diff) | |
download | FreeFileSync-6fcfe73ca751f068978ce201094b17cf2dfe4d20.tar.gz FreeFileSync-6fcfe73ca751f068978ce201094b17cf2dfe4d20.tar.bz2 FreeFileSync-6fcfe73ca751f068978ce201094b17cf2dfe4d20.zip |
3.16
Diffstat (limited to 'RealtimeSync/watcher.cpp')
-rw-r--r-- | RealtimeSync/watcher.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/RealtimeSync/watcher.cpp b/RealtimeSync/watcher.cpp index ef43d8d9..a8b703a6 100644 --- a/RealtimeSync/watcher.cpp +++ b/RealtimeSync/watcher.cpp @@ -181,7 +181,7 @@ rts::WaitResult rts::waitForChanges(const std::vector<Zstring>& dirNames, WaitCa if (dirNames.empty()) //pathological case, but check is needed nevertheless - throw ffs3::FileError(_("At least one directory input field is empty.")); + throw ffs3::FileError(_("A directory input field is empty.")); //detect when volumes are removed/are not available anymore WatchDirectories dirWatcher; @@ -195,7 +195,7 @@ rts::WaitResult rts::waitForChanges(const std::vector<Zstring>& dirNames, WaitCa const Zstring formattedDir = ffs3::getFormattedDirectoryName(*i); if (formattedDir.empty()) - throw ffs3::FileError(_("At least one directory input field is empty.")); + throw ffs3::FileError(_("A directory input field is empty.")); dirWatcher.addForMonitoring(formattedDir); @@ -222,7 +222,7 @@ rts::WaitResult rts::waitForChanges(const std::vector<Zstring>& dirNames, WaitCa } if (changeNotifications->size() == 0) - throw ffs3::FileError(_("At least one directory input field is empty.")); + throw ffs3::FileError(_("A directory input field is empty.")); //detect user request for device removal (e.g. usb stick) @@ -302,7 +302,7 @@ rts::WaitResult rts::waitForChanges(const std::vector<Zstring>& dirNames, WaitCa const Zstring formattedDir = ffs3::getFormattedDirectoryName(*i); if (formattedDir.empty()) - throw ffs3::FileError(_("At least one directory input field is empty.")); + throw ffs3::FileError(_("A directory input field is empty.")); dirWatcher.addForMonitoring(formattedDir); @@ -357,7 +357,7 @@ rts::WaitResult rts::waitForChanges(const std::vector<Zstring>& dirNames, WaitCa if (notifications.GetWatchCount() == 0) - throw ffs3::FileError(_("At least one directory input field is empty.")); + throw ffs3::FileError(_("A directory input field is empty.")); while (true) { @@ -402,11 +402,11 @@ void rts::waitForMissingDirs(const std::vector<Zstring>& dirNames, WaitCallback* bool allExisting = true; for (std::vector<Zstring>::const_iterator i = dirNames.begin(); i != dirNames.end(); ++i) { - //support specifying volume by name => call getFormattedDirectoryName() repeatedly + //support specifying volume by name => call getFormattedDirectoryName() repeatedly const Zstring formattedDir = ffs3::getFormattedDirectoryName(*i); if (formattedDir.empty()) - throw ffs3::FileError(_("At least one directory input field is empty.")); + throw ffs3::FileError(_("A directory input field is empty.")); if (!ffs3::dirExists(formattedDir)) { |