Log redirect name instead of article on error

Signed-off-by: Evan Lloyd New-Schmidt <evan@new-schmidt.com>
This commit is contained in:
Evan Lloyd New-Schmidt 2023-11-16 13:46:58 -05:00 committed by Evan Lloyd New-Schmidt
parent 580b60bdd4
commit 2dc0b1bc34

View file

@ -47,7 +47,7 @@ impl Page {
pub fn redirects(&self) -> impl Iterator<Item = anyhow::Result<Title>> + '_ {
self.redirects.iter().map(|r| {
Title::from_title(&r.name, &self.in_language.identifier)
.with_context(|| format!("bad redirect {:?}", self.name))
.with_context(|| format!("bad redirect {:?}", &r.name))
})
}
}