diff --git a/cmd/watcher/main.go b/cmd/watcher/main.go index 60e2827..2e7c5c3 100644 --- a/cmd/watcher/main.go +++ b/cmd/watcher/main.go @@ -156,7 +156,10 @@ func main() { c.Stdin = os.Stdin c.Stdout = os.Stdout c.Stderr = os.Stderr - if err := c.Run(); err != nil { + err := c.Run() + if err != nil && *keepalive { + log.Println(err) + } else if err != nil { log.Fatalln(err) } }