mirror of
https://github.com/typst/typst
synced 2025-08-23 19:24:14 +08:00
chore: more meaningful error message
This commit is contained in:
parent
602d831ffa
commit
2fc89b8e5f
@ -425,7 +425,11 @@ fn format_biblatex_error(errors: Vec<BibLaTeXError>) -> LoadError {
|
||||
// TODO: return multiple errors?
|
||||
let Some(error) = errors.into_iter().next() else {
|
||||
// TODO: can this even happen, should we just unwrap?
|
||||
return LoadError::new(ReportPos::None, "failed to parse BibLaTeX", "???");
|
||||
return LoadError::new(
|
||||
ReportPos::None,
|
||||
"failed to parse BibLaTeX",
|
||||
"something went wrong",
|
||||
);
|
||||
};
|
||||
|
||||
let (range, msg) = match error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user