not fallible, print errors
This commit is contained in:
parent
bdda966497
commit
555b9773e6
@ -56,10 +56,12 @@ where
|
|||||||
rbx::convert(&dom.0,acquire_render_config_id,acquire_mesh_id)
|
rbx::convert(&dom.0,acquire_render_config_id,acquire_mesh_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn run_scripts(dom:Dom)->roblox_emulator::Result<Dom>{
|
pub fn run_scripts(dom:Dom)->Dom{
|
||||||
let mut context=roblox_emulator::context::Context::new(dom.0);
|
let mut context=roblox_emulator::context::Context::new(dom.0);
|
||||||
for script in context.scripts(){
|
for script in context.scripts(){
|
||||||
script.run(&mut context)?;
|
if let Err(e)=script.run(&mut context){
|
||||||
|
e.print();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Ok(Dom(context.into_inner()))
|
Dom(context.into_inner())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user