Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 34f62cf

Browse files
Merge pull request #370 from secrethub/feature/credential-not-found-message
Improve credential not found error for service accounts
2 parents 5da334b + c4ca22a commit 34f62cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internals/secrethub/credential_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
// Errors
1515
var (
16-
ErrCredentialNotExist = errMain.Code("credential_not_exist").Error("could not find credential file. Go to https://signup.secrethub.io/ to create an account or run `secrethub init` to use an already existing account on this machine.")
16+
ErrCredentialNotExist = errMain.Code("credential_not_configured").Error("could not find credential. Go to https://signup.secrethub.io/ to create a personal account. To use the CLI as a service account, set the SECRETHUB_CREDENTIAL or SECRETHUB_IDENTITY_PROVIDER environment variable.")
1717
)
1818

1919
// CredentialConfig handles the configuration necessary for local credentials.

0 commit comments

Comments
 (0)