mirror of
https://github.com/knadh/listmonk.git
synced 2024-09-20 07:16:33 +08:00
Fix incorrect error message in tx template preview.
This commit is contained in:
parent
284158666b
commit
d70236c379
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue