Skip to content

Commit 7abfd4e

Browse files
authored
add clarity to validate error message (#58)
Issue #, if available: N/A Description of changes: With the removal of `--aws-account-id` the validate error message that gets propagated is less clear then it used to be. This PR aims to add more clarity to the error message that gets propagated when `ack_user_secrets` does not exist in the namespace that a given controller runs in. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 93d4146 commit 7abfd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func (cfg *Config) SetAWSAccountID() error {
153153
// Validate ensures the options are valid
154154
func (cfg *Config) Validate() error {
155155
if err := cfg.SetAWSAccountID(); err != nil {
156-
return errors.New("unable to determine account ID. Please make sure AWS credentials are setup in controller pod")
156+
return fmt.Errorf("unable to determine account ID: %v", err)
157157
}
158158

159159
if cfg.Region == "" {

0 commit comments

Comments
 (0)