Skip to content

Commit

Permalink
[iam] (actually) don't fail if test config is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTugarev authored and roboquat committed Jan 10, 2023
1 parent af9c9bb commit db16141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/iam/pkg/oidc/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewServiceWithTestConfig(configPath string, sessionServiceAddress string) (

testConfig, err := readDemoConfigFromFile(configPath)
if err != nil {
return nil, fmt.Errorf("failed to read test config: %w", err)
log.WithError(err).Errorf("failed to read test config")
}
if testConfig != nil {
clientConfig := &ClientConfig{
Expand All @@ -71,7 +71,7 @@ func NewServiceWithTestConfig(configPath string, sessionServiceAddress string) (

err = s.AddClientConfig(clientConfig)
if err != nil {
log.Errorf("failed to add client config: %v", err)
log.WithError(err).Errorf("failed to add client config")
}
}

Expand Down

0 comments on commit db16141

Please sign in to comment.