Skip to content

Commit b91fc65

Browse files
authored
Fix regression (#7751)
1 parent 6a7e837 commit b91fc65

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Build/BackEnd/Components/Logging/LoggingService.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,10 @@ private void LoggingEventProcessor(object loggingEvent)
14321432
private void RouteBuildEvent(object loggingEvent)
14331433
{
14341434
BuildEventArgs buildEventArgs = loggingEvent as BuildEventArgs ?? (loggingEvent as KeyValuePair<int, BuildEventArgs>?)?.Value;
1435-
ErrorUtilities.VerifyThrow(buildEventArgs is not null, "Unknown logging item in queue:" + loggingEvent.GetType().FullName);
1435+
if (buildEventArgs is null)
1436+
{
1437+
ErrorUtilities.ThrowInternalError("Unknown logging item in queue:" + loggingEvent.GetType().FullName);
1438+
}
14361439

14371440
if (buildEventArgs is BuildWarningEventArgs warningEvent)
14381441
{

0 commit comments

Comments
 (0)