From 5c3f1ab85b05619f5dfa939d85ea23cbb406ef17 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Fri, 15 Dec 2017 11:36:49 +0100 Subject: [PATCH] Logging / reporting changes only. --- AutoTx/AutoTx.cs | 4 +++- AutoTx/XmlWrapper/ServiceConfig.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AutoTx/AutoTx.cs b/AutoTx/AutoTx.cs index 313ae52..48738c7 100644 --- a/AutoTx/AutoTx.cs +++ b/AutoTx/AutoTx.cs @@ -847,8 +847,10 @@ namespace AutoTx try { // make sure the target directory that should hold all subdirectories to // be moved is existing: - if (string.IsNullOrEmpty(CreateNewDirectory(destPath, false))) + if (string.IsNullOrEmpty(CreateNewDirectory(destPath, false))) { + writeLog("WARNING: destination path doesn't exist: " + destPath); return false; + } foreach (var subDir in sourceDir.GetDirectories()) { var target = Path.Combine(destPath, subDir.Name); diff --git a/AutoTx/XmlWrapper/ServiceConfig.cs b/AutoTx/XmlWrapper/ServiceConfig.cs index 087f469..a160e7f 100644 --- a/AutoTx/XmlWrapper/ServiceConfig.cs +++ b/AutoTx/XmlWrapper/ServiceConfig.cs @@ -90,7 +90,7 @@ namespace AutoTx.XmlWrapper public static void Serialize(string file, ServiceConfig c) { // the config is never meant to be written by us, therefore: - throw new SettingsPropertyIsReadOnlyException("The config file should not be written by the service!"); + throw new SettingsPropertyIsReadOnlyException("The config file must not be written by the service!"); } public static ServiceConfig Deserialize(string file) { -- GitLab