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

Commit 0c395f6

Browse files
committed
Improve credential not found error for service accounts
The previous error message was solely focussed on setting up a credential for a human. This new error message attempts to cover both the human and service account use-case.
1 parent 114e34e commit 0c395f6

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)