Skip to content

Commit db16141

Browse files
AlexTugarevroboquat
authored andcommitted
[iam] (actually) don't fail if test config is missing
1 parent af9c9bb commit db16141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/iam/pkg/oidc/service.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func NewServiceWithTestConfig(configPath string, sessionServiceAddress string) (
5252

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

7272
err = s.AddClientConfig(clientConfig)
7373
if err != nil {
74-
log.Errorf("failed to add client config: %v", err)
74+
log.WithError(err).Errorf("failed to add client config")
7575
}
7676
}
7777

0 commit comments

Comments
 (0)