Display correct error message
This commit is contained in:
parent
c727b9efaf
commit
8578e72ecd
@ -65,7 +65,6 @@ func CreatePanel(ctx *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !data.doValidations(ctx, guildId) {
|
if !data.doValidations(ctx, guildId) {
|
||||||
ctx.JSON(400, utils.ErrorToResponse(errors.New("Validation failed")))
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,7 +58,6 @@ func UpdatePanel(ctx *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !data.doValidations(ctx, guildId) {
|
if !data.doValidations(ctx, guildId) {
|
||||||
ctx.JSON(400, utils.ErrorToResponse(errors.New("Validation failed")))
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user