diff --git a/BTCPayServer.Tests/UnitTest1.cs b/BTCPayServer.Tests/UnitTest1.cs index 96c51a92f..1fb0349d2 100644 --- a/BTCPayServer.Tests/UnitTest1.cs +++ b/BTCPayServer.Tests/UnitTest1.cs @@ -158,9 +158,11 @@ namespace BTCPayServer.Tests Assert.Equal(HttpStatusCode.OK, (await httpClient.SendAsync(request)).StatusCode); Logs.Tester.LogInformation($"OK: {url} ({file})"); } - catch (EqualException ex) + catch (Exception ex) { - Logs.Tester.LogInformation($"FAILED: {url} ({file}) {ex.Actual}"); + var details = ex is EqualException ? (ex as EqualException).Actual : ex.Message; + Logs.Tester.LogInformation($"FAILED: {url} ({file}) {details}"); + throw; } }