fix(GODT-2516): log error when the vault key cannot be created/loaded from the keychain.

This commit is contained in:
Xavier Michelon 2023-03-21 17:25:35 +01:00
parent 9425e091d8
commit 3ca5d0af71
No known key found for this signature in database
GPG Key ID: DAE1FC3F3255843C
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ func newVault(locations *locations.Locations) (*vault.Vault, bool, bool, error)
)
if key, err := getVaultKey(vaultDir); err != nil {
logrus.WithError(err).Error("Could not load/create vault key")
insecure = true
// We store the insecure vault in a separate directory