Begin paths with / in problem report.

Otherwise you get reports like:

    (archive)
    : directory shadows redirect "/ /foo 301"; remove the directory or use a 301! forced redirect instead
This commit is contained in:
Catherine
2025-12-14 19:47:28 +00:00
parent 30b6db2758
commit 24dbab6813

View File

@@ -148,7 +148,7 @@ func GetProblemReport(manifest *Manifest) []string {
var report []string
for _, problem := range manifest.Problems {
report = append(report,
fmt.Sprintf("%s: %s", problem.GetPath(), problem.GetCause()))
fmt.Sprintf("/%s: %s", problem.GetPath(), problem.GetCause()))
}
return report
}