roblox_emulator: fix error message
This commit is contained in:
@@ -331,7 +331,7 @@ impl mlua::UserData for Instance{
|
||||
rbx_types::Variant::Bool(typed_value)
|
||||
},
|
||||
rbx_reflection::DataType::Value(rbx_types::VariantType::String)=>{
|
||||
let typed_value=value.as_str().ok_or_else(||mlua::Error::runtime("Expected boolean"))?;
|
||||
let typed_value=value.as_str().ok_or_else(||mlua::Error::runtime("Expected string"))?;
|
||||
rbx_types::Variant::String(typed_value.to_owned())
|
||||
},
|
||||
rbx_reflection::DataType::Value(rbx_types::VariantType::NumberSequence)=>{
|
||||
|
||||
Reference in New Issue
Block a user