mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
api: improve app create error message (#331)
api: improve app create error message
This commit is contained in:
@@ -44,7 +44,7 @@ func (s *Server) handleAppCreate(c *gin.Context) {
|
|||||||
_, err = Api.Datastore.InsertApp(ctx, wapp.App)
|
_, err = Api.Datastore.InsertApp(ctx, wapp.App)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithError(err).Errorln(models.ErrAppsCreate)
|
log.WithError(err).Errorln(models.ErrAppsCreate)
|
||||||
c.JSON(http.StatusInternalServerError, simpleError(models.ErrAppsCreate))
|
c.JSON(http.StatusInternalServerError, simpleError(err))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user