mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
API: Add batch edit form validation error to gin.Context #271
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -44,7 +44,7 @@ func BatchPhotosEdit(router *gin.RouterGroup) {
|
||||
|
||||
// Assign and validate request form values.
|
||||
if err := c.BindJSON(&frm); err != nil {
|
||||
AbortBadRequest(c)
|
||||
AbortBadRequest(c, err)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user