Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions internal/watcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func walkSingleDirectory(we config.WatchEntry) {
})

if err != nil {
panic(err)
color.Errorf("Error during directory walk: %v\n", err)
}
}

Expand Down Expand Up @@ -98,7 +98,8 @@ func isFileChanged(path string) bool {
err := os.Chtimes(path, currentTime, currentModificationTime)

if err != nil {
panic("Error touching file" + path)
color.Errorf("Error touching file %s: %v\n", path, err)
return false
}

fileMap[path] = NodeInfo{
Expand Down