summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/engine.rs
diff options
context:
space:
mode:
authorMalo <57839069+MDLC01@users.noreply.github.com>2025-02-25 15:09:52 +0100
committerGitHub <noreply@github.com>2025-02-25 14:09:52 +0000
commit2eef9e84e117670ea0db964a5a8addc89e0ee785 (patch)
tree2cb773fbd67860cbca584bcd37476ad7be5ac007 /crates/typst-library/src/engine.rs
parentd11ad80dee669c5e2285ca8df8ebc99abc031ccd (diff)
Improve hints for show rule recursion depth (#5856)
Diffstat (limited to 'crates/typst-library/src/engine.rs')
-rw-r--r--crates/typst-library/src/engine.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst-library/src/engine.rs b/crates/typst-library/src/engine.rs
index 80aaef22..43a7b467 100644
--- a/crates/typst-library/src/engine.rs
+++ b/crates/typst-library/src/engine.rs
@@ -312,7 +312,8 @@ impl Route<'_> {
if !self.within(Route::MAX_SHOW_RULE_DEPTH) {
bail!(
"maximum show rule depth exceeded";
- hint: "check whether the show rule matches its own output"
+ hint: "maybe a show rule matches its own output";
+ hint: "maybe there are too deeply nested elements"
);
}
Ok(())