Render a branch not found page if the branch doesn't exist
This commit is contained in:
parent
91f0fbdeb5
commit
e87a8124bf
1 changed files with 15 additions and 9 deletions
|
|
@ -147,6 +147,12 @@
|
|||
(data_available . ,data-available?))))
|
||||
revisions))))))
|
||||
(else
|
||||
(if (null? revisions)
|
||||
(render-html
|
||||
#:sxml (general-not-found
|
||||
"Branch not found"
|
||||
"")
|
||||
#:code 404)
|
||||
(render-html
|
||||
#:sxml (if (any-invalid-query-parameters? parsed-query-parameters)
|
||||
(view-branch repository-id
|
||||
|
|
@ -155,7 +161,7 @@
|
|||
repository-id
|
||||
branch-name
|
||||
parsed-query-parameters
|
||||
revisions))))))))
|
||||
revisions)))))))))
|
||||
(('GET "repository" repository-id "branch" branch-name "package" package-name)
|
||||
(letpar& ((package-versions
|
||||
(with-thread-postgresql-connection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue