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 compilation. Closes #3045.

Kailash Nadh1111ae94b585
diff --git a/cmd/tx.go b/cmd/tx.go
index baa760fa..2468b23e 100644
--- a/cmd/tx.go
+++ b/cmd/tx.go
@@ -131,7 +131,7 @@ func (a *App) SendTxMessage(c echo.Context) error {
// Render the message.
if err := m.Render(sub, tpl, a.manager.GenericTemplateFuncs()); err != nil {
return echo.NewHTTPError(http.StatusBadRequest,
- a.i18n.Ts("globals.messages.errorFetching", "name"))
+ a.i18n.Ts("templates.errorRendering", "error", err.Error()))
}
// Prepare the final message.