about summary refs log tree commit diff
path: root/tools/nixery/main.go
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-07-31T20·25+0100
committerVincent Ambo <github@tazj.in>2019-08-02T00·08+0100
commit2f1bc55597c382496930f4ba8f4ef25914fb9748 (patch)
tree2f40806c2c9e85db759dbf2887a8e00a3e78dbe1 /tools/nixery/main.go
parent3070d88051674bc5562412b8a98dbd90e92959f0 (diff)
fix(go): Return response code 500 if Nix builds fail
Diffstat (limited to 'tools/nixery/main.go')
-rw-r--r--tools/nixery/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/nixery/main.go b/tools/nixery/main.go
index faee731b4e75..a4e0b9a80a16 100644
--- a/tools/nixery/main.go
+++ b/tools/nixery/main.go
@@ -362,6 +362,7 @@ func (h *registryHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 
 		if err != nil {
 			log.Println("Failed to build image manifest", err)
+			w.WriteHeader(500)
 			return
 		}