diff --git a/crates/typst-library/src/model/bibliography.rs b/crates/typst-library/src/model/bibliography.rs index d64d12412..9044a26a2 100644 --- a/crates/typst-library/src/model/bibliography.rs +++ b/crates/typst-library/src/model/bibliography.rs @@ -224,11 +224,14 @@ impl Show for Packed { let references = works .references .as_ref() - .ok_or_else(|| { - eco_format!( - "{:?} CSL style is not suitable for bibliographies", - self.style(styles).into_value() - ) + .ok_or_else(|| match self.style(styles).source { + CslSource::Named(style) => eco_format!( + "CSL style `{}` is not suitable for bibliographies", + style.display_name() + ), + CslSource::Normal(..) => { + eco_format!("CSL style is not suitable for bibliographies") + } }) .at(span)?;