Skip to content

Commit

Permalink
Raise error message verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
omaus committed Feb 26, 2022
1 parent 6b74ff3 commit 88a0088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArcCommander/Logging.fs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module Logging =
printfn "%s" uMsg
| true,false,false -> printfn "%s" exn.Message // exception message contains usage message but NO error message
| false,false,true -> () // empty error message
| _ -> log.Error(exn.Message) // everything else will be a non-empty error message
| _ -> log.Error(exn) // everything else will be a non-empty error message

/// Checks if a message (string) is empty and if it is not, applies a logging function to it.
let checkNonLog s (logging : string -> unit) = if s <> "" then logging s
Expand Down

0 comments on commit 88a0088

Please sign in to comment.