Skip to content

Commit

Permalink
Non-zero exit code in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tudor Golubenco committed Sep 23, 2015
1 parent e008ba5 commit f29478a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beat/beat.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (beat *Beat) CommandLineSetup() {
err := cfgfile.ChangeDefaultCfgfileFlag(beat.Name)
if err != nil {
fmt.Printf("Failed to fix the -c flag: %v\n", err)
os.Exit(0)
os.Exit(1)
}

flag.Parse()
Expand Down

0 comments on commit f29478a

Please sign in to comment.