We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a7e837 commit b91fc65Copy full SHA for b91fc65
1 file changed
src/Build/BackEnd/Components/Logging/LoggingService.cs
@@ -1432,7 +1432,10 @@ private void LoggingEventProcessor(object loggingEvent)
1432
private void RouteBuildEvent(object loggingEvent)
1433
{
1434
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);
+ if (buildEventArgs is null)
1436
+ {
1437
+ ErrorUtilities.ThrowInternalError("Unknown logging item in queue:" + loggingEvent.GetType().FullName);
1438
+ }
1439
1440
if (buildEventArgs is BuildWarningEventArgs warningEvent)
1441
0 commit comments