From 4a6e041ca8ebfdc0c9597d8321b442333fbf1c92 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sat, 2 Jul 2022 15:39:19 +0530 Subject: [PATCH] Don't break boot on tx template compilation errors. --- cmd/init.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/init.go b/cmd/init.go index a21ea4014..728dfa7ff 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) }