Skip to content

Commit 7bc1166

Browse files
committed
return errors
1 parent 83d5a6d commit 7bc1166

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

internal/start/start.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,12 +485,18 @@ EOF
485485
}
486486

487487
for id, tmpl := range utils.Config.Auth.Email.Template {
488-
mountEmailTemplates(id, tmpl.ContentPath)
488+
err := mountEmailTemplates(id, tmpl.ContentPath)
489+
if err != nil {
490+
return err
491+
}
489492
}
490493

491494
for id, tmpl := range utils.Config.Auth.Email.Notification {
492495
if tmpl.Enabled {
493-
mountEmailTemplates(id+"_notification", tmpl.ContentPath)
496+
err := mountEmailTemplates(id+"_notification", tmpl.ContentPath)
497+
if err != nil {
498+
return err
499+
}
494500
}
495501
}
496502

0 commit comments

Comments
 (0)