refactor: use fatal log message on oidc init error (#1973)
Instead of using panic() when an unknown error was detected on OP initialization, use logger.Fatalf. This provides a more useful output to the user.pull/1974/head
parent
3c4b320096
commit
a984e2700b
|
@ -121,7 +121,7 @@ func startServer() {
|
|||
oidcProvider, err := oidc.NewOpenIDConnectProvider(config.IdentityProviders.OIDC)
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
logger.Fatalf("Error initializing OpenID Connect Provider: %+v", err)
|
||||
}
|
||||
|
||||
providers := middlewares.Providers{
|
||||
|
|
Loading…
Reference in New Issue