From dc9b1111e0a1be0f10c35a5be8aa5d14c047e5ff Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Tue, 7 May 2024 17:35:52 -0700 Subject: [PATCH] fix invalid destination error message --- server/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes.go b/server/routes.go index b9dd0b17..0f49d697 100644 --- a/server/routes.go +++ b/server/routes.go @@ -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 }