s/message/error/

This commit is contained in:
Michael Yang 2023-10-18 15:56:56 -07:00
parent 689842b9ff
commit 7e547c6833

View file

@ -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
}