Display correct error message

This commit is contained in:
rxdn 2020-11-25 21:43:46 +00:00
parent c727b9efaf
commit 8578e72ecd
2 changed files with 0 additions and 2 deletions

View File

@ -65,7 +65,6 @@ func CreatePanel(ctx *gin.Context) {
}
if !data.doValidations(ctx, guildId) {
ctx.JSON(400, utils.ErrorToResponse(errors.New("Validation failed")))
return
}

View File

@ -58,7 +58,6 @@ func UpdatePanel(ctx *gin.Context) {
}
if !data.doValidations(ctx, guildId) {
ctx.JSON(400, utils.ErrorToResponse(errors.New("Validation failed")))
return
}