Skip to content

Commit 9670f58

Browse files
committed
[debug] mount path
1 parent ef83946 commit 9670f58

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/iam/pkg/oidc/demo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type DemoConfig struct {
2626
func ReadDemoConfigFromFile(path string) (*DemoConfig, error) {
2727
bytes, err := os.ReadFile(path)
2828
if err != nil {
29-
return nil, fmt.Errorf("failed to read test config: %w", err)
29+
return nil, fmt.Errorf("failed to read test config: %q %w", path, err)
3030
}
3131

3232
var config DemoConfig

components/iam/pkg/server/server.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ func Start(logger *logrus.Entry, version string, cfg *config.ServiceConfig) erro
4343
// TODO(at) remove the demo config after start sync'ing with DB
4444
err = loadTestConfig(oidcService, cfg)
4545
if err != nil {
46-
return fmt.Errorf("failed to load test config")
46+
logger.Errorf("failed to load test config: " + err.Error())
47+
// return fmt.Errorf("failed to load test config: %w", err)
4748
}
4849

4950
if listenErr := srv.ListenAndServe(); listenErr != nil {

0 commit comments

Comments
 (0)