Make configuration file optional

This commit is contained in:
Ryan Cavicchioni 2022-08-22 07:59:23 -05:00
parent f8cf68af83
commit 0fd921ee28
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

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)
}