Fix incorrect error message in tx template preview.

This commit is contained in:
Kailash Nadh 2024-01-28 11:04:47 +05:30
parent 284158666b
commit d70236c379

View file

@ -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
}