Fix branch package version page if no data is found

This commit is contained in:
Christopher Baines 2025-01-27 12:25:11 +00:00
parent 9a1c1b30cb
commit 83f2981c64

View file

@ -188,12 +188,18 @@
(datetime . ,last-datetime))))))
package-versions))))))
(else
(render-html
#:sxml (view-branch-package
repository-id
branch-name
package-name
package-versions))))))
(if (null? package-versions)
(render-html
#:sxml (general-not-found
"Package or branch not found"
"")
#:code 404)
(render-html
#:sxml (view-branch-package
repository-id
branch-name
package-name
package-versions)))))))
(('GET "repository" repository-id "branch" branch-name "package" package-name "derivation-history")
(render-branch-package-derivation-history request
mime-types