Skip to content

Commit

Permalink
chore: updated error message to include context (#10592) (#10960)
Browse files Browse the repository at this point in the history
* Updated error message

Signed-off-by: Jennifer Trevilian <JCPTrevillian@Gmail.com>

* Updated error message

Signed-off-by: Jennifer Trevilian <JCPTrevillian@Gmail.com>

Signed-off-by: Jennifer Trevilian <JCPTrevillian@Gmail.com>
  • Loading branch information
JCPTrevillian committed Oct 19, 2022
1 parent 9639795 commit 6632454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reposerver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NewServer(metricsServer *metrics.MetricsServer, cache *reposervercache.Cach
keyPath := fmt.Sprintf("%s/reposerver/tls/tls.key", env.StringFromEnv(common.EnvAppConfigPath, common.DefaultAppConfigPath))
tlsConfig, err = tlsutil.CreateServerTLSConfig(certPath, keyPath, tlsHostList)
if err != nil {
return nil, err
return nil, fmt.Errorf("error creating server TLS config: %w", err)
}
tlsConfCustomizer(tlsConfig)
}
Expand Down

0 comments on commit 6632454

Please sign in to comment.