mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
@@ -15,7 +15,11 @@ func (s *Server) handleAppUpdate(c *gin.Context) {
|
||||
|
||||
err := c.BindJSON(&wapp)
|
||||
if err != nil {
|
||||
handleErrorResponse(c, models.ErrInvalidJSON)
|
||||
if models.IsAPIError(err) {
|
||||
handleErrorResponse(c, err)
|
||||
} else {
|
||||
handleErrorResponse(c, models.ErrInvalidJSON)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user