mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-08 21:10:10 +00:00
add deprecation warnings
This commit is contained in:
@@ -53,6 +53,10 @@ func ParseConfig(cmd *cobra.Command) (*cfg.Config, error) {
|
||||
if err := conf.ValidateBasic(); err != nil {
|
||||
return nil, fmt.Errorf("error in config file: %v", err)
|
||||
}
|
||||
err = conf.CheckDeprecated()
|
||||
if err != nil {
|
||||
logger.Info("deprecated usage found in configuration file", "error", err)
|
||||
}
|
||||
return conf, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user