Skip to content

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

Fix incorrect error message in tx template preview.

Kailash Nadhd70236c37943
diff --git a/cmd/templates.go b/cmd/templates.go
index ee13a880..9e80771e 100644
--- a/cmd/templates.go
+++ b/cmd/templates.go
@@ -130,8 +130,7 @@ func handlePreviewTemplate(c echo.Context) error {
// Render the message.
if err := m.Render(dummySubscriber, &tpl); err != nil {
- return echo.NewHTTPError(http.StatusBadRequest,
- app.i18n.Ts("globals.messages.errorFetching", "name"))
+ return echo.NewHTTPError(http.StatusBadRequest, err.Error())
}
out = m.Body
}