Skip to content

Commit

Permalink
Give few more details in authentication error condition
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Lo-A-Foe <[email protected]>
  • Loading branch information
loafoe committed Oct 3, 2024
1 parent 3e53bb2 commit d077593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func (c *Config) SetupIAMClient() {
PrivateKey: c.ServicePrivateKey,
})
if err != nil {
c.iamClientErr = fmt.Errorf("invalid IAM Service Identity credentials: %w", err)
c.iamClientErr = fmt.Errorf("invalid IAM Service Identity credentials for '%s': %w", c.ServiceID, err)
return
}
usingServiceIdentity = true
Expand All @@ -415,7 +415,7 @@ func (c *Config) SetupIAMClient() {
}
err = client.Login(c.OrgAdminUsername, c.OrgAdminPassword)
if err != nil {
c.iamClientErr = fmt.Errorf("invalid IAM Org Admin credentials: %w", err)
c.iamClientErr = fmt.Errorf("invalid IAM Org Admin credentials for '%s': %w", c.OrgAdminUsername, err)
return
}
usingOrgAdmin = true
Expand Down

0 comments on commit d077593

Please sign in to comment.