diff options
-rw-r--r-- | src/cuirass/http.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cuirass/http.scm b/src/cuirass/http.scm index 36143b4..e7f0da7 100644 --- a/src/cuirass/http.scm +++ b/src/cuirass/http.scm @@ -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)) |