Skip to content

Commit e3a0de6

Browse files
committed
this path should return 404, not 500
1 parent e27bd7b commit e3a0de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/UnidocUI/Endpoints/Unidoc.SitemapEndpoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extension Unidoc.SitemapEndpoint:HTTP.ServerEndpoint
4444
let output:Unidoc.SitemapQuery.Output = self.value
4545
else
4646
{
47-
return .error("Query for endpoint '\(Self.self)' returned no outputs!")
47+
return .notFound("Query for endpoint '\(Self.self)' returned no outputs!")
4848
}
4949

5050
let prefix:String = "https://swiftinit.org\(Unidoc.ServerRoot.docs)/\(output.package)"

0 commit comments

Comments
 (0)