Remove redundant error wrapper
This commit is contained in:
parent
08bc6bc67c
commit
46f4a0e2aa
|
@ -133,7 +133,7 @@ func handleCreateTemplate(c echo.Context) error {
|
|||
)
|
||||
|
||||
if err := c.Bind(&o); err != nil {
|
||||
return echo.NewHTTPError(http.StatusInternalServerError, err.Error())
|
||||
return err
|
||||
}
|
||||
|
||||
if err := validateTemplate(o); err != nil {
|
||||
|
|
Loading…
Reference in New Issue