Typing error in conf.go
This commit is contained in:
@@ -44,7 +44,7 @@ func Init() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
|
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
|
||||||
writeCfg()
|
writeCfg()
|
||||||
log.Warn("Generated config file \"pdapiconf.toml\", please edit and run again.")
|
log.Warn("Generated config file \"pdwebconf.toml\", please edit and run again.")
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
} else if _, ok := err.(viper.ConfigParseError); ok {
|
} else if _, ok := err.(viper.ConfigParseError); ok {
|
||||||
log.Error("Could not parse config file: ", err)
|
log.Error("Could not parse config file: ", err)
|
||||||
|
Reference in New Issue
Block a user