fix(go): Return response code 500 if Nix builds fail

This commit is contained in:
Vincent Ambo 2019-07-31 21:25:36 +01:00 committed by Vincent Ambo
parent 6fc2aa97c4
commit cf36e0087a

View File

@ -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
}