mirror of
https://github.com/nwg-piotr/nwg-drawer.git
synced 2024-10-05 17:58:02 +03:00
log actual error message too
This commit is contained in:
parent
3df7a30533
commit
89cffad81d
@ -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)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user