Skip to content

Commit

Permalink
edited error messages for creating project
Browse files Browse the repository at this point in the history
  • Loading branch information
heyyakash committed Aug 31, 2024
1 parent a89edf7 commit fa883e8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/internal/handler/project.handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ func CreateProject() gin.HandlerFunc {
var req CreateProjectRequest
uid := ctx.MustGet("uid").(string)
if err := ctx.BindJSON(&req); err != nil {
ctx.AbortWithStatusJSON(http.StatusBadRequest, gin.H{
"message": "Bad json",
"success": false,
})
ctx.AbortWithStatusJSON(http.StatusBadRequest, utils.ResponseGenerator("Invalid field formats", false))
return
}
project := &modals.Projects{
Expand Down

0 comments on commit fa883e8

Please sign in to comment.