mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
feat: change error message
This commit is contained in:
parent
ae97359fb3
commit
067f62c778
@ -679,12 +679,7 @@ fn visit_grouping_rules<'a>(
|
||||
// by the show rule, and so on. The two must be at an equilibrium,
|
||||
// otherwise either the "maximum show rule depth" or "maximum
|
||||
// grouping depth" errors are triggered.
|
||||
bail!(
|
||||
content.span(),
|
||||
"maximum realization iterations exceeded";
|
||||
hint: "maybe there is a cycle between a show rule that produces content, \
|
||||
which is matched by a grouping rule that triggers the show rule",
|
||||
);
|
||||
bail!(content.span(), "maximum grouping depth exceeded");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user