Skip to content

Commit

Permalink
Minor logging fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
1eyewonder committed Dec 28, 2023
1 parent f80aadb commit 7a29ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FSharp.Analyzers.Cli/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ let writeReport (results: AnalyzerMessage list option) (codeRoot: string option)

sarifLogger.Dispose()
with ex ->
logger.LogError("Could not write sarif to {report}")
logger.LogError(ex, "Could not write sarif to {report}", report)
logger.LogInformation("{0}", ex)

let calculateExitCode (msgs: AnalyzerMessage list option) : int =
Expand Down Expand Up @@ -576,7 +576,7 @@ let main argv =
| projects, None ->
for projPath in projects do
if not (File.Exists(projPath)) then
logger.LogError("Invalid `--project` argument. File does not exist: '{projPath}'")
logger.LogError("Invalid `--project` argument. File does not exist: '{projPath}'", projPath)
exit 1

projects
Expand Down

0 comments on commit 7a29ca7

Please sign in to comment.