Skip to content

Commit

Permalink
Fix missing fmt argument in error message (#71)
Browse files Browse the repository at this point in the history
Thanks for the fix. I forgot to add the argument.
  • Loading branch information
dtolnay authored Nov 3, 2021
1 parent f817117 commit a61c89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ucelofka/src/translations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn get_available_locales() -> Result<Vec<LanguageIdentifier>> {
fn read_language_data(id: &LanguageIdentifier) -> Result<String> {
let file = RESOURCES
.get_file(format!("{}/ucelofka.ftl", id.to_string()))
.ok_or_else(|| anyhow!("{} translation not found",))?;
.ok_or_else(|| anyhow!("{} translation not found", id))?;
Ok(from_utf8(file.contents)?.to_string())
}

Expand Down

0 comments on commit a61c89c

Please sign in to comment.