refactor: change error message to warning

This commit is contained in:
David Allen 2025-03-24 11:35:37 -06:00
parent 6c5fc993b0
commit 34af75c1d2
Signed by: towk
GPG key ID: 793B2924A49B3A3F
2 changed files with 2 additions and 1 deletions

View file

@ -80,7 +80,7 @@ var CollectCmd = &cobra.Command{
if err != nil {
// Something went wrong with the store so try using
// Create a StaticSecretStore to hold the username and password
fmt.Println(err)
log.Warn().Err(err).Msg("failed to open local store")
store = secrets.NewStaticStore(username, password)
}

View file

@ -74,6 +74,7 @@ var secretsStoreCmd = &cobra.Command{
secretValue = args[1]
}
// handle input file format
switch secretsStoreFormat {
case "base64":
decoded, err := base64.StdEncoding.DecodeString(secretValue)