Skip to content

Commit df4f346

Browse files
committed
Make root relative keys an error
1 parent 14d0480 commit df4f346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public async Task<int> ValidateRedirects(string? path = null, Cancel ctx = defau
8888
continue;
8989
if (redirects.ContainsKey(rootRelativePath))
9090
{
91-
collector.EmitWarning(redirectFile.Source,
91+
collector.EmitError(redirectFile.Source,
9292
$"Redirect contains path relative to root '{rootRelativePath}' but should be relative to the documentation set '{docSetRelativePath}'");
9393
continue;
9494
}

0 commit comments

Comments
 (0)