Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion GVFS/GVFS.Common/GitStatusCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,10 @@ private void UpdateHydrationSummary()
}
else
{
metadata["Exception"] = hydrationSummary.Error?.ToString();
this.context.Tracer.RelatedWarning(
metadata,
$"{nameof(GitStatusCache)}{nameof(RebuildStatusCacheIfNeeded)}: hydration summary could not be calculdated.",
$"{nameof(GitStatusCache)}{nameof(RebuildStatusCacheIfNeeded)}: hydration summary could not be calculated.",
Keywords.Telemetry);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class EnlistmentHydrationSummary
public int TotalFileCount { get; private set; }
public int HydratedFolderCount { get; private set; }
public int TotalFolderCount { get; private set; }
public Exception Error { get; private set; } = null;


public bool IsValid
{
Expand Down Expand Up @@ -67,14 +69,15 @@ public static EnlistmentHydrationSummary CreateSummary(
TotalFolderCount = totalFolderCount,
};
}
catch
catch (Exception e)
{
return new EnlistmentHydrationSummary()
{
HydratedFileCount = -1,
HydratedFolderCount = -1,
TotalFileCount = -1,
TotalFolderCount = -1,
Error = e,
};
}
}
Expand Down
Loading