From 7e547c6833ea7807304bb7d9896935574ae6aca7 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Wed, 18 Oct 2023 15:56:56 -0700 Subject: [PATCH] s/message/error/ --- server/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes.go b/server/routes.go index 0dce976d..ec8f4bde 100644 --- a/server/routes.go +++ b/server/routes.go @@ -350,7 +350,7 @@ func PushModelHandler(c *gin.Context) { func CreateModelHandler(c *gin.Context) { var req api.CreateRequest if err := c.ShouldBindJSON(&req); err != nil { - c.JSON(http.StatusBadRequest, gin.H{"message": err.Error()}) + c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) return }