app/assets.go: add info on what path failed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-05-11 03:09:12 +02:00
parent 46cc1d663f
commit 61760fa373
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -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)