Log correct exception message when handling aggregate exceptions in console logger (#757)

Co-authored-by: Kenneth Siewers Møller <ksm@templafy.com>
This commit is contained in:
Kenneth Siewers Møller
2022-05-19 23:20:47 +02:00
committed by GitHub
parent d7173d34a3
commit ca6c39c63a

View File

@@ -1,4 +1,4 @@
using Newtonsoft.Json;
using Newtonsoft.Json;
using System;
using WireMock.Admin.Requests;
@@ -51,7 +51,7 @@ namespace WireMock.Logging
{
ae.Handle(ex =>
{
Console.WriteLine(Format("Error", "Exception {0}", exception.Message));
Console.WriteLine(Format("Error", "Exception {0}", ex.Message));
return true;
});
}