1
0

Add more logging to web handler methods

This commit is contained in:
kolaente
2020-02-08 22:45:38 +01:00
parent d84a160054
commit 1c3b35fa6f
41 changed files with 407 additions and 127 deletions

View File

@ -62,5 +62,9 @@ func (c *WebHandler) CreateWeb(ctx echo.Context) error {
return HandleHTTPError(err, ctx)
}
return ctx.JSON(http.StatusCreated, currentStruct)
err = ctx.JSON(http.StatusCreated, currentStruct)
if err != nil {
return HandleHTTPError(err, ctx)
}
return err
}