Skip to content

Commit

Permalink
Log correct exception message when handling aggregate exceptions in c…
Browse files Browse the repository at this point in the history
…onsole logger (#757)

Co-authored-by: Kenneth Siewers Møller <[email protected]>
  • Loading branch information
siewers and Kenneth Siewers Møller authored May 19, 2022
1 parent d7173d3 commit ca6c39c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WireMock.Net/Logging/WireMockConsoleLogger.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Newtonsoft.Json;
using Newtonsoft.Json;
using System;
using WireMock.Admin.Requests;

Expand Down Expand Up @@ -51,7 +51,7 @@ public void Error(string formatString, Exception exception)
{
ae.Handle(ex =>
{
Console.WriteLine(Format("Error", "Exception {0}", exception.Message));
Console.WriteLine(Format("Error", "Exception {0}", ex.Message));
return true;
});
}
Expand Down

0 comments on commit ca6c39c

Please sign in to comment.