Skip to content

Commit d70236c

Browse files
committed
Fix incorrect error message in tx template preview.
1 parent 2841586 commit d70236c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/templates.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ func handlePreviewTemplate(c echo.Context) error {
130130

131131
// Render the message.
132132
if err := m.Render(dummySubscriber, &tpl); err != nil {
133-
return echo.NewHTTPError(http.StatusBadRequest,
134-
app.i18n.Ts("globals.messages.errorFetching", "name"))
133+
return echo.NewHTTPError(http.StatusBadRequest, err.Error())
135134
}
136135
out = m.Body
137136
}

0 commit comments

Comments
 (0)