Skip to content

Commit

Permalink
Updated the default error so a more clear message is displayed when a…
Browse files Browse the repository at this point in the history
…pplication_default_credentials.json is not found (#263)
  • Loading branch information
Isaac-Duarte authored May 7, 2024
1 parent f09d435 commit db62947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foundation/auth/src/credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit db62947

Please sign in to comment.