Log test message error

This commit is contained in:
Kailash Nadh 2021-01-28 23:30:39 +05:30
parent 83613dcad0
commit b420c31d33
1 changed files with 1 additions and 0 deletions

View File

@ -570,6 +570,7 @@ func handleTestCampaign(c echo.Context) error {
for _, s := range subs {
sub := s
if err := sendTestMessage(sub, &camp, app); err != nil {
app.log.Printf("error sending test message: %v", err)
return echo.NewHTTPError(http.StatusInternalServerError,
app.i18n.Ts("campaigns.errorSendTest", "error", err.Error()))
}