mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
refactor: minor changes to error messages
This commit is contained in:
parent
4dd01867f7
commit
da8b1a1756
1 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ func (l *LocalSecretStore) RemoveSecretByID(secretID string) error {
|
|||
// variable MASTER_KEY. If not found, it prints an error.
|
||||
func OpenStore(filename string) (SecretStore, error) {
|
||||
if filename == "" {
|
||||
return nil, fmt.Errorf("no path to secret store provided")
|
||||
return nil, fmt.Errorf("path to secret store required")
|
||||
}
|
||||
|
||||
masterKey := os.Getenv("MASTER_KEY")
|
||||
|
|
@ -128,7 +128,7 @@ func OpenStore(filename string) (SecretStore, error) {
|
|||
|
||||
store, err := NewLocalSecretStore(masterKey, filename, true)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("cannot open secrets store: %v", err)
|
||||
return nil, fmt.Errorf("failed to create new local secret store: %v", err)
|
||||
}
|
||||
return store, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue