From b56b6f11cbfdc804d97ed79c742b0b37a54f720d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sat, 27 Jan 2024 17:30:31 -0800 Subject: [PATCH] actually print out errors --- internal/render/render.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/render/render.go b/internal/render/render.go index 096efb7..a90529f 100644 --- a/internal/render/render.go +++ b/internal/render/render.go @@ -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