Make configuration file optional

This commit is contained in:
2022-08-22 07:59:23 -05:00
parent f8cf68af83
commit 0fd921ee28

View File

@ -63,7 +63,7 @@ func main() {
viper.AddConfigPath(".")
err = viper.ReadInConfig()
if err != nil {
if _, ok := err.(viper.ConfigFileNotFoundError); !ok {
log.Fatalf("fatal error config file: %v", err)
}