Skip to content

Commit

Permalink
[FIX] keepalive is ignored on startcmd error
Browse files Browse the repository at this point in the history
Fixes #63
  • Loading branch information
fvosberg committed Jan 18, 2019
1 parent d8b41ca commit e4bc9ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/watcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit e4bc9ab

Please sign in to comment.