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) }