Skip to content

Commit 08d7000

Browse files
committed
Make the test actually fail 🤦‍♂️
1 parent ca85e01 commit 08d7000

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common.Tooling/Logging/TestOutputLogger.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ public bool IsEnabled(LogLevel logLevel)
1818

1919
public void Log(LogLevel logLevel, string message, Exception? exception)
2020
{
21+
if (logLevel == LogLevel.Error)
22+
{
23+
throw exception ?? new InvalidOperationException(message);
24+
}
25+
2126
if (!IsEnabled(logLevel))
2227
{
2328
return;

0 commit comments

Comments
 (0)