mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 13:02:50 -05:00
Scripts: image lists propagate the page item list's run error
Cause: main's fe89d3f8 changed page_items to return a Result, since
building the list again now counts against the run's host-call allowance.
The image collections' list builder still used the old return type, so
vectorcraft-engine did not compile once main was merged in, and every
gate shard failed. The builder now passes the error on with `?`, as the
path and text lists do.
This commit is contained in:
1 parent
99bea87cff
commit
08bc2d2009
1 file changed
+1
-1
@@ -144,7 +144,7 @@ fn images(h: &Host, st: &DocState, placed: bool) -> Result<Rc<Vec<NodeId>>, Host
|
||||
{
|
||||
return Ok(pick(l));
|
||||
}
|
||||
let all = page_items(h, st);
|
||||
let all = page_items(h, st)?;
|
||||
h.charge_call(all.len() as u64)?;
|
||||
let (mut linked, mut embedded) = (Vec::new(), Vec::new());
|
||||
for id in all.iter() {
|
||||
|
||||
Reference in new issue
Block a user