log actual error message too

This commit is contained in:
6543 2023-07-06 17:14:55 +02:00
parent 3df7a30533
commit 89cffad81d
No known key found for this signature in database
GPG Key ID: B8BE6D610E61C862

View File

@ -20,12 +20,12 @@ func watchFiles() {
defer watcher.Close()
if err := watcher.Add(pinnedFile); err != nil {
log.Errorf("ERROR", err)
log.Errorf("ERROR: %s", err)
}
for _, fp := range appDirs {
if err := filepath.Walk(fp, watchDir); err != nil {
log.Errorf("ERROR", err)
log.Errorf("ERROR: %s", err)
}
}
@ -47,7 +47,7 @@ func watchFiles() {
}
case err := <-watcher.Errors:
log.Errorf("ERROR", err)
log.Errorf("ERROR: %s", err)
}
}
}()