create config dir if it doesn't exist

This commit is contained in:
Maidul Islam
2022-12-25 16:02:14 -05:00
parent 8c10ae78f5
commit 78d4fb2300
3 changed files with 16 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ var vaultSetCmd = &cobra.Command{
err = util.WriteConfigFile(&configFile)
if err != nil {
log.Errorf("Unable to set vault to [%s] because an error occurred when saving the config file [err=%s]")
log.Errorf("Unable to set vault to [%s] because an error occurred when saving the config file [err=%s]", wantedVaultTypeName, err)
return
}