Skip to content

Commit

Permalink
exit after creating the default config
Browse files Browse the repository at this point in the history
  • Loading branch information
dakyskye committed Nov 3, 2020
1 parent 78c722c commit f4747f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ func main() {
if err != nil {
logger.L().WithField("path", configFilePath).Fatal("can not create default config")
}
logger.L().WithField("path", configFilePath).Info("created the default config")
os.Exit(0)
} else {
logger.L().WithFields(logrus.Fields{"path": configFilePath, "valid": validPath}).WithError(err).Fatal("path to the config is not valid")
}
Expand Down

0 comments on commit f4747f4

Please sign in to comment.