summaryrefslogtreecommitdiff
path: root/src/library/shape.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-10 10:29:17 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-10 10:29:17 +0100
commit624471db619240f0eed849b92dff6a525ce7e547 (patch)
treeb6218c031019a78a99c7bb99fcbbe40918e6f2d7 /src/library/shape.rs
parent6e198bf7606847b0847487a4847d6a3ee3621d2d (diff)
Proper error messages for shorthands
Diffstat (limited to 'src/library/shape.rs')
-rw-r--r--src/library/shape.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/shape.rs b/src/library/shape.rs
index 95e3e288..1eaad11a 100644
--- a/src/library/shape.rs
+++ b/src/library/shape.rs
@@ -45,7 +45,7 @@ impl<S: ShapeKind> ShapeNode<S> {
};
Ok(Template::inline(
- ShapeNode { kind: S::default(), child: args.find() }
+ ShapeNode { kind: S::default(), child: args.find()? }
.pack()
.sized(Spec::new(width, height)),
))