refactor: change error message to warning

This commit is contained in:
David Allen 2025-03-24 11:35:37 -06:00 committed by David Allen
parent 5c624de821
commit 4dd01867f7
Signed by: towk
GPG key ID: 0430CDBE22619155
2 changed files with 2 additions and 1 deletions

View file

@ -84,7 +84,7 @@ var CollectCmd = &cobra.Command{
if err != nil { if err != nil {
// Something went wrong with the store so try using // Something went wrong with the store so try using
// Create a StaticSecretStore to hold the username and password // 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) store = secrets.NewStaticStore(username, password)
} }

View file

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