Skip to content

Commit 5eb16e8

Browse files
committed
Debugging
1 parent 7f1c0f2 commit 5eb16e8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/tooling/docs-builder/Cli/DiffCommands.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,18 @@ public async Task<int> ValidateRedirects([Argument] string? path = null, Cancel
5757
}
5858

5959
IRepositoryTracker tracker = runningOnCi ? new IntegrationGitRepositoryTracker(logFactory.CreateLogger<IntegrationGitRepositoryTracker>(), path) : new LocalGitRepositoryTracker(collector, root, path);
60-
var changed = tracker.GetChangedFiles() as GitChange[] ?? [];
60+
_log.LogInformation("Calling GetChangedFiles");
61+
GitChange[] changed = [];
62+
try
63+
{
64+
changed = tracker.GetChangedFiles() as GitChange[] ?? [];
65+
}
66+
catch (Exception e)
67+
{
68+
_log.LogError(e, "Error while getting changed files");
69+
}
70+
71+
_log.LogInformation("Finished GetChangedFiles");
6172

6273
if (changed.Length > 0)
6374
_log.LogInformation($"Found {changed.Length} changes to files related to documentation in the current branch.");

0 commit comments

Comments
 (0)