rmv prints

This commit is contained in:
Josh Yan 2024-07-05 15:14:09 -07:00
parent 6c0a8379f6
commit 34d197000d

View File

@ -927,13 +927,11 @@ func (s *Server) CreateBlobHandler(c *gin.Context) {
} }
} }
fmt.Println("path2", c.Param("digest"))
path, err := GetBlobsPath(c.Param("digest")) path, err := GetBlobsPath(c.Param("digest"))
if err != nil { if err != nil {
c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": err.Error()}) c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return return
} }
fmt.Println("path1", path)
_, err = os.Stat(path) _, err = os.Stat(path)
switch { switch {
case errors.Is(err, os.ErrNotExist): case errors.Is(err, os.ErrNotExist):