fix invalid destination error message

This commit is contained in:
Bruce MacDonald 2024-05-07 17:35:52 -07:00
parent 06ac829e70
commit dc9b1111e0

View file

@ -799,7 +799,7 @@ func (s *Server) CopyModelHandler(c *gin.Context) {
dst := model.ParseName(r.Destination) dst := model.ParseName(r.Destination)
if !dst.IsValid() { if !dst.IsValid() {
c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": fmt.Sprintf("destination %q is invalid", r.Source)}) c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": fmt.Sprintf("destination %q is invalid", r.Destination)})
return return
} }