Skip to content

Commit

Permalink
print error if config file exists, but could not be passed
Browse files Browse the repository at this point in the history
  • Loading branch information
birdayz committed Nov 21, 2018
1 parent d8f8073 commit b66ee6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/kaf/kaf.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ func init() {
}

func onInit() {
config, _ = kaf.ReadConfig()
var err error
config, err = kaf.ReadConfig()
if err != nil && !os.IsNotExist(err) {
panic(err)
}

// Flag is highest priority override
if brokersFlag != nil {
Expand Down

0 comments on commit b66ee6c

Please sign in to comment.