Skip to content

Commit 204f7ca

Browse files
committed
stop if cannot render template
1 parent 8100f63 commit 204f7ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/mailer/mail_workflow_run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ func sendActionsWorkflowRunStatusEmail(ctx context.Context, repo *repo_model.Rep
113113
"Language": locale.Language(),
114114
}); err != nil {
115115
log.Error("ExecuteTemplate [%s]: %v", tplWorkflowRun, err)
116+
return
116117
}
117118
msgs := make([]*sender_service.Message, 0, len(tos))
118119
for _, rec := range tos {

0 commit comments

Comments
 (0)