From 555b9773e6b0f5800ee9885b12bcbde8648b7809 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 17 Sep 2024 18:00:02 -0700 Subject: [PATCH] not fallible, print errors --- src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 38b1c76..b57b51b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,10 +56,12 @@ where rbx::convert(&dom.0,acquire_render_config_id,acquire_mesh_id) } -pub fn run_scripts(dom:Dom)->roblox_emulator::Result{ +pub fn run_scripts(dom:Dom)->Dom{ let mut context=roblox_emulator::context::Context::new(dom.0); 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()) }