app/assets.go: add info on what path failed
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
46cc1d663f
commit
61760fa373
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user