Remove redundant error wrapper
This commit is contained in:
parent
08bc6bc67c
commit
46f4a0e2aa
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue