diff options
Diffstat (limited to 'internal/server')
-rw-r--r-- | internal/server/dev.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/server/dev.go b/internal/server/dev.go index ce718eb..7898a09 100644 --- a/internal/server/dev.go +++ b/internal/server/dev.go @@ -80,7 +80,9 @@ func (watcher FileWatcher) Start(callback func(string)) { if event.Has(fsnotify.Create) || event.Has(fsnotify.Rename) { f, err := os.Stat(event.Name) if err != nil { - slog.Error(fmt.Sprintf("error handling %s event: %v", event.Op.String(), err)) + slog.Error( + fmt.Sprintf("error handling %s event: %v", event.Op.String(), err), + ) } else if f.IsDir() { err = watcher.Add(event.Name) if err != nil { |