fixed version check, removed duplicate kube config, fix flags warning, fixed log of invalid config (#227)

This commit is contained in:
RoyUP9
2021-08-18 18:10:47 +03:00
committed by GitHub
parent 2ae0a2400d
commit bf27e94003
12 changed files with 102 additions and 33 deletions

View File

@@ -51,8 +51,8 @@ func InitConfig(cmd *cobra.Command) error {
}
if err := mergeConfigFile(); err != nil {
return fmt.Errorf("invalid config %w\n"+
"you can regenerate the file using `mizu config -r` or just remove it %v", err, GetConfigFilePath())
return fmt.Errorf("invalid config, %w\n" +
"you can regenerate the file by removing it (%v) and using `mizu config -r`", err, GetConfigFilePath())
}
cmd.Flags().Visit(initFlag)