bugfix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-04 13:04:17 +10:00
parent 747487b764
commit bf235cdebe
2 changed files with 8 additions and 8 deletions

View File

@@ -1,10 +1,10 @@
package controllers
import (
"smt/models"
"errors"
"log"
"net/http"
"smt/models"
"github.com/gin-gonic/gin"
)
@@ -23,7 +23,7 @@ func StoreSecret(c *gin.Context) {
var input StoreInput
if err := c.ShouldBindJSON(&input); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
c.JSON(http.StatusBadRequest, gin.H{"error": "invalid JSON received : " + err.Error()})
return
}