diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-06-10 23:53:20 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-06-10 23:54:16 +0200 |
| commit | ed6550fdb08eae92bffab6b6b137b1e0eebf62c6 (patch) | |
| tree | 74152a38f7aa2ed2ac2fa190e81494422700ca36 /src/library/layout | |
| parent | 6aff11057bc88257c9383137952bb41b5b85c3dc (diff) | |
Bump dependencies
Diffstat (limited to 'src/library/layout')
| -rw-r--r-- | src/library/layout/page.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/library/layout/page.rs b/src/library/layout/page.rs index 115a1923..c2fbaba0 100644 --- a/src/library/layout/page.rs +++ b/src/library/layout/page.rs @@ -201,7 +201,10 @@ impl Cast<Spanned<Value>> for Marginal { Value::Str(v) => Ok(Self::Content(Content::Text(v))), Value::Content(v) => Ok(Self::Content(v)), Value::Func(v) => Ok(Self::Func(v, value.span)), - _ => Err("expected none, content or function")?, + v => Err(format!( + "expected none, content or function, found {}", + v.type_name(), + )), } } } |
