mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
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.
This commit is contained in:
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
Block a user