From 61760fa373ba73068f451678df9637fafa70dcbb Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 11 May 2023 03:09:12 +0200 Subject: [PATCH] app/assets.go: add info on what path failed --- app/assets.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets.go b/app/assets.go index ffc3384..8b63178 100644 --- a/app/assets.go +++ b/app/assets.go @@ -46,9 +46,9 @@ func (a *App) getTemplates() fs.FS { _, err := os.ReadDir(a.templatesPath) if err != nil { if errors.Is(err, os.ErrNotExist) { - a.Logger().Error("templates dir does not exist") + a.Logger().Errorf("templates dir '%s' does not exist", a.templatesPath) } else if errors.Is(err, os.ErrPermission) { - a.Logger().Error("templates dir is not accessible, check permissions") + a.Logger().Errorf("templates dir '%s' is not accessible, check permissions", a.templatesPath) } panic(err)