http: Handle error on /download.
* src/cuirass/http.scm (url-handler): Handle the error case on /download route.
This commit is contained in:
parent
f71f026a41
commit
e41327350d
|
@ -581,7 +581,11 @@ Hydra format."
|
|||
|
||||
(('GET "download" id)
|
||||
(let ((path (db-get-build-product-path id)))
|
||||
(respond-file path)))
|
||||
(if path
|
||||
(respond-file path)
|
||||
(respond-json-with-error
|
||||
500
|
||||
"Could not find the request build product."))))
|
||||
|
||||
(('GET "static" path ...)
|
||||
(respond-static-file path))
|
||||
|
|
Loading…
Reference in New Issue