Skip to content

Commit

Permalink
fix invalid destination error message
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceMacD committed May 8, 2024
1 parent 06ac829 commit dc9b111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ func (s *Server) CopyModelHandler(c *gin.Context) {

dst := model.ParseName(r.Destination)
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
}

Expand Down

0 comments on commit dc9b111

Please sign in to comment.