@@ -328,13 +328,13 @@ private GroupComparisonMode CompareEndpointCounts(string group, StaticWebAssetEn
328
328
case GroupComparisonMode . Exact :
329
329
if ( manifestEndpoints . Length != expectedEndpoints . Length )
330
330
{
331
- ThrowEndpointCountMismatchError ( manifestEndpoints , expectedEndpoints ) ;
331
+ ThrowEndpointCountMismatchError ( group , manifestEndpoints , expectedEndpoints ) ;
332
332
}
333
333
break ;
334
334
case GroupComparisonMode . AllowAdditionalAssets :
335
335
if ( expectedEndpoints . Except ( manifestEndpoints ) . Any ( ) )
336
336
{
337
- ThrowEndpointCountMismatchError ( manifestEndpoints , expectedEndpoints ) ;
337
+ ThrowEndpointCountMismatchError ( group , manifestEndpoints , expectedEndpoints ) ;
338
338
}
339
339
break ;
340
340
default :
@@ -343,14 +343,14 @@ private GroupComparisonMode CompareEndpointCounts(string group, StaticWebAssetEn
343
343
344
344
return comparisonMode ;
345
345
346
- static void ThrowEndpointCountMismatchError ( StaticWebAssetEndpoint [ ] manifestEndpoints , StaticWebAssetEndpoint [ ] expectedEndpoints )
346
+ static void ThrowEndpointCountMismatchError ( string group , StaticWebAssetEndpoint [ ] manifestEndpoints , StaticWebAssetEndpoint [ ] expectedEndpoints )
347
347
{
348
348
var missingEndpoints = expectedEndpoints . Except ( manifestEndpoints ) ;
349
349
var unexpectedEndpoints = manifestEndpoints . Except ( expectedEndpoints ) ;
350
350
351
351
var differences = new List < string >
352
352
{
353
- "Expected '{expectedEndpoints.Length}' endpoints but found '{manifestEndpoints.Length}'."
353
+ $ "Expected group ' { group } ' to have '{ expectedEndpoints . Length } ' endpoints but found '{ manifestEndpoints . Length } '."
354
354
} ;
355
355
356
356
if ( missingEndpoints . Any ( ) )
0 commit comments