Fix the store item json response code
This commit is contained in:
parent
6e25a64815
commit
7d17e56839
1 changed files with 3 additions and 1 deletions
|
|
@ -652,7 +652,9 @@
|
||||||
(match (with-resource-from-pool (connection-pool) conn
|
(match (with-resource-from-pool (connection-pool) conn
|
||||||
(select-derivation-source-file-by-store-path conn filename))
|
(select-derivation-source-file-by-store-path conn filename))
|
||||||
(()
|
(()
|
||||||
(render-json '((error . "store item not found"))))
|
(render-json
|
||||||
|
'((error . "store item not found"))
|
||||||
|
#:code 404))
|
||||||
((id)
|
((id)
|
||||||
(render-json
|
(render-json
|
||||||
`((derivation-source-file
|
`((derivation-source-file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue