From db629470a85def745abd43afa4eda06640e404fc Mon Sep 17 00:00:00 2001 From: Isaac Duarte <31712685+Isaac-Duarte@users.noreply.github.com> Date: Tue, 7 May 2024 07:08:11 -0600 Subject: [PATCH] Updated the default error so a more clear message is displayed when application_default_credentials.json is not found (#263) --- foundation/auth/src/credentials.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundation/auth/src/credentials.rs b/foundation/auth/src/credentials.rs index f7624c10..17abcac9 100644 --- a/foundation/auth/src/credentials.rs +++ b/foundation/auth/src/credentials.rs @@ -138,7 +138,7 @@ impl CredentialsFile { } }?; - let credentials_json = fs::read(path).await?; + let credentials_json = fs::read(path).await.map_err(Error::CredentialsIOError)?; Ok(credentials_json) }