File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -372,9 +372,10 @@ private void UpdateHydrationSummary()
372372 }
373373 else
374374 {
375+ metadata [ "Exception" ] = hydrationSummary . Error ? . ToString ( ) ;
375376 this . context . Tracer . RelatedWarning (
376377 metadata ,
377- $ "{ nameof ( GitStatusCache ) } { nameof ( RebuildStatusCacheIfNeeded ) } : hydration summary could not be calculdated .",
378+ $ "{ nameof ( GitStatusCache ) } { nameof ( RebuildStatusCacheIfNeeded ) } : hydration summary could not be calculated .",
378379 Keywords . Telemetry ) ;
379380 }
380381 }
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ public class EnlistmentHydrationSummary
1212 public int TotalFileCount { get ; private set ; }
1313 public int HydratedFolderCount { get ; private set ; }
1414 public int TotalFolderCount { get ; private set ; }
15+ public Exception Error { get ; private set ; } = null ;
16+
1517
1618 public bool IsValid
1719 {
@@ -67,14 +69,15 @@ public static EnlistmentHydrationSummary CreateSummary(
6769 TotalFolderCount = totalFolderCount ,
6870 } ;
6971 }
70- catch
72+ catch ( Exception e )
7173 {
7274 return new EnlistmentHydrationSummary ( )
7375 {
7476 HydratedFileCount = - 1 ,
7577 HydratedFolderCount = - 1 ,
7678 TotalFileCount = - 1 ,
7779 TotalFolderCount = - 1 ,
80+ Error = e ,
7881 } ;
7982 }
8083 }
You can’t perform that action at this time.
0 commit comments