Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Don't break boot on tx template compilation errors.

Kailash Nadh4a6e041ca8eb
diff --git a/cmd/init.go b/cmd/init.go
index a21ea401..728dfa7f 100644
--- a/cmd/init.go
+++ b/cmd/init.go
@@ -434,7 +434,8 @@ func initTxTemplates(m *manager.Manager, app *App) {
for _, t := range tpls {
if err := t.Compile(app.manager.GenericTemplateFuncs()); err != nil {
- lo.Fatalf("error compiling transactional template %d: %v", t.ID, err)
+ lo.Printf("error compiling transactional template %d: %v", t.ID, err)
+ continue
}
m.CacheTpl(t.ID, &t)
}