Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollo-XIV committed Mar 5, 2024
1 parent ce52836 commit c37dd1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn get_secret(key: &str) -> String {
#[cfg(feature = "ssr")]
fn read_secret_from_file(key: &str) -> Result<String, String> {
std::fs::read_to_string(format!("/run/secrets/{}", key))
.map_err(|_e| "Could not read from file".to_string())
.map_err(|_e| format!("Could not read {} from file", key))
}

#[cfg(feature = "ssr")]
Expand Down

0 comments on commit c37dd1e

Please sign in to comment.