actually print out errors

This commit is contained in:
Lilian Jónsdóttir 2024-01-27 17:30:31 -08:00
parent c1506cc4b1
commit b56b6f11cb

View file

@ -28,7 +28,7 @@ func Initialise(a *config.AppConfig) {
var err error
app.TemplateCache, err = generateNewTemplateCache()
if err != nil {
app.Logger.Fatal("Error generating template cache, bailing out!")
app.Logger.Fatal("Error generating template cache, bailing out!", "err", err)
}
}
}
@ -108,7 +108,7 @@ func GetOrGenerateTemplateData(filename string) (*models.TemplateData, error) {
func regenerateTemplateCache() {
c, err := generateNewTemplateCache()
if err != nil {
app.Logger.Fatal("Error generating template cache, bailing out!")
app.Logger.Fatal("Error generating template cache, bailing out!", "err", err)
}
app.TemplateCache = c