Skip to content

Commit 2da65d4

Browse files
committed
Refine diagnostic link warning message for clarity.
The warning message now clearly indicates the unresolved URL and missing file path when creating an auto text link. This improves readability and helps users better understand the issue during debugging.
1 parent 86a2e4f commit 2da65d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Markdown/Myst/InlineParsers/DiagnosticLinkInlineParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public override bool Match(InlineProcessor processor, ref StringSlice slice)
119119
processor.EmitWarning(line,
120120
column,
121121
length,
122-
$"Can not create an auto title link to '{file.FullName}' however this file can not be resolved.");
122+
$"'{url}' could not be resolved to a markdown file while creating an auto text link, '{file.FullName}' does not exist.");
123123
}
124124

125125
var title = markdown?.Title;

0 commit comments

Comments
 (0)