build: cleanup error names and other things

This commit is contained in:
Blake Mizerany
2024-04-01 21:57:34 -07:00
parent 876f7eab81
commit b1b8be33d9
3 changed files with 27 additions and 30 deletions

View File

@@ -55,7 +55,7 @@ func (s *Server) handlePush(_ http.ResponseWriter, r *http.Request) error {
const registryURLTODO = "http://localhost:8888"
man, err := s.Build.Manifest(params.Name)
man, err := s.Build.ManifestData(params.Name)
if err != nil {
if errors.Is(err, build.ErrNotFound) {
return errRefNotFound