Skip to content

Commit

Permalink
Merge pull request #489 from noborus/issue-488
Browse files Browse the repository at this point in the history
Fix when configuration file is missing
  • Loading branch information
noborus authored Jan 24, 2024
2 parents a1d7bb1 + 879f450 commit 5f1a910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ func initConfig() {
var configNotFoundError *viper.ConfigFileNotFoundError
if !errors.As(err, &configNotFoundError) {
fmt.Fprintln(os.Stderr, "failed to read config file:", err)
return
// If the config file is not found, it is not an error and will continue.
}
}

Expand Down

0 comments on commit 5f1a910

Please sign in to comment.