Skip to content

Commit

Permalink
Fix incorrect error message in tx template preview.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jan 28, 2024
1 parent 2841586 commit d70236c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d70236c

Please sign in to comment.