From 8ca8f7eddd5cc806242efb22a5b450c9bca2e824 Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Mon, 7 Oct 2024 06:10:12 -0400 Subject: [PATCH] add context to oidc init error --- bin/core/src/auth/oidc/client.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/core/src/auth/oidc/client.rs b/bin/core/src/auth/oidc/client.rs index 63741558b..4f55c8670 100644 --- a/bin/core/src/auth/oidc/client.rs +++ b/bin/core/src/auth/oidc/client.rs @@ -42,7 +42,10 @@ pub async fn init_default_oidc_client() { })?, async_http_client, ) - .await?; + .await + .context( + "Failed to get OIDC /.well-known/openid-configuration", + )?; // Create an OpenID Connect client by specifying the client ID, client secret, authorization URL // and token URL.