Skip to content

Commit

Permalink
Fix input path
Browse files Browse the repository at this point in the history
  • Loading branch information
BillWagner committed Jun 6, 2024
1 parent 99420e9 commit 7d26735
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/StandardAnchorTags/ReferenceUpdateProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task ReplaceReferences(string file)
{
lineNumber++;
var updatedLine = line.Contains(sectionReference)
? ProcessSectionLinks(line, lineNumber, file)
? ProcessSectionLinks(line, lineNumber, inputPath)
: line;
await writeStream.WriteLineAsync(updatedLine);
}
Expand All @@ -49,7 +49,7 @@ public async Task ReplaceReferences(string file)
}
}

private string ProcessSectionLinks(string line, int lineNumber, string file)
private string ProcessSectionLinks(string line, int lineNumber, string path)
{
var returnedLine = new StringBuilder();
int index = 0;
Expand All @@ -62,7 +62,7 @@ private string ProcessSectionLinks(string line, int lineNumber, string file)
if ((referenceText.Length > 1) &&
(!linkMap.ContainsKey(referenceText)))
{
var diagnostic = new Diagnostic(file, lineNumber, lineNumber, $"`{referenceText}` not found", DiagnosticIDs.TOC002);
var diagnostic = new Diagnostic(path, lineNumber, lineNumber, $"`{referenceText}` not found", DiagnosticIDs.TOC002);
logger.LogFailure(diagnostic);
} else
{
Expand Down

0 comments on commit 7d26735

Please sign in to comment.