Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Remove redundant error wrapper

Kailash Nadh46f4a0e2aaea
diff --git a/templates.go b/templates.go
index 0806eef1..48de924a 100644
--- a/templates.go
+++ b/templates.go
@@ -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 {