diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/config.go b/config/config.go index 87d183a4..51982d26 100644 --- a/config/config.go +++ b/config/config.go @@ -413,8 +413,10 @@ func (config *AercConfig) LoadConfig(file *ini.File) error { if key == "template-dirs" { continue } + // we want to fail during startup if the templates are not ok + // hence we do a dummy execute here _, err := templates.ParseTemplateFromFile( - val, config.Templates.TemplateDirs, templates.TestTemplateData()) + val, config.Templates.TemplateDirs, templates.DummyData()) if err != nil { return err } |