Skip to content

Commit 60b2453

Browse files
committed
Emit as warning, its non breaking but we want folks to fix it
1 parent a2126a7 commit 60b2453

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
@@ -258,7 +258,7 @@ private static void ValidateInternalUrl(InlineProcessor processor, string url, s
258258
? $"one of: {string.Join(", ", redirect.Many.Select(m => m.To))}"
259259
: "unknown"
260260
);
261-
processor.EmitError(link, $"Local file `{url}` has a redirect, please update this reference to: {name}");
261+
processor.EmitWarning(link, $"Local file `{url}` has a redirect, please update this reference to: {name}");
262262
}
263263
else
264264
processor.EmitError(link, $"`{url}` does not exist. If it was recently removed add a redirect. resolved to `{pathOnDisk}");

0 commit comments

Comments
 (0)