From 0ea85517814f45b68bace5437d98f22fa5723448 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 21 Sep 2024 14:25:56 -0700 Subject: [PATCH] throw lua error rather than silently failing --- src/runner/instance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/instance.rs b/src/runner/instance.rs index d17d86e..88eec38 100644 --- a/src/runner/instance.rs +++ b/src/runner/instance.rs @@ -160,7 +160,7 @@ impl Instance{ let typed_value:f32=coerce_float32(&value).ok_or(mlua::Error::runtime("Expected f32"))?; instance.properties.insert(index_str.to_owned(),rbx_types::Variant::Float32(typed_value)); }, - other=>println!("Unimplemented property type: {other:?}"), + other=>return Err(mlua::Error::runtime(format!("Unimplemented property type: {other:?}"))), } Ok(()) })