From fe68cf51a6206bf8631dde9c2148ca0b04a230b5 Mon Sep 17 00:00:00 2001 From: Yuanle Song Date: Thu, 14 Nov 2019 15:13:57 +0800 Subject: [PATCH] update some log message. removed the old logger workaround when no object is used in fmt. --- Program.fs | 11 +++++++---- operational | 3 +++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Program.fs b/Program.fs index ba7d1ff..df5cb87 100644 --- a/Program.fs +++ b/Program.fs @@ -179,7 +179,7 @@ let main argv = let backupTarget = results.GetResult (Target, defaultValue = Environment.GetEnvironmentVariable "TARGET") match backupTarget with | null -> - logger.Error "TARGET is not defined%s" "" + logger.Error "TARGET is not defined" ExitBadParam | _ -> let backupTarget = ToMingwPath backupTarget @@ -210,9 +210,12 @@ let main argv = logger.Info "mbackup exit" proc.ExitCode else - logger.Error "mbackup timed out while waiting for rsync to complete%s" "" + logger.Error "mbackup timed out while waiting for rsync to complete" ExitTimeout with - | _ -> - logger.Error "Create runtime dir failed%s" "" + | :? System.IO.IOException as ex -> + logger.Error "IO Error: %s %s" ex.Source ex.Message + ExitIOError + | ex -> + logger.Error "Unexpected Error: %s" ex.Message ExitIOError diff --git a/operational b/operational index d28b4da..eb28c65 100644 --- a/operational +++ b/operational @@ -85,6 +85,9 @@ C:\ProgramData\mbackup\mbackup.ini * later :entry: ** 2019-11-14 supports expand Downloads dir in user-default.list +** 2019-11-14 vscode f# doesn't support open a module +it can only support open a namespace. +using the vscode Ionide-fsharp extension. * current :entry: ** ** 2019-11-14 support mbackup.ini config. -- GitLab