Skip to content

Commit

Permalink
ref(host.go): update invalid err verbiage
Browse files Browse the repository at this point in the history
Signed-off-by: Vaughn Dice <vadice@microsoft.com>
  • Loading branch information
vdice committed Jun 23, 2020
1 parent ed67a99 commit 581ddfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion secrets/host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (h *SecretStore) Resolve(keyName string, keyValue string) (string, error) {
case SourceValue:
return keyValue, nil
default:
return "", fmt.Errorf("invalid credential source: %s", keyName)
return "", fmt.Errorf("invalid value source: %s", keyName)
}
}

Expand Down
2 changes: 1 addition & 1 deletion secrets/host/host_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ func TestSecretStore_Resolve_InvalidSource(t *testing.T) {
h := &SecretStore{}
_, err := h.Resolve("cmd", "kv get something")
require.Error(t, err, "expected Resolve to return an error")
assert.Equal(t, "invalid credential source: cmd", err.Error())
assert.Equal(t, "invalid value source: cmd", err.Error())
}

0 comments on commit 581ddfb

Please sign in to comment.