From 85203d754fc6f1dcaad3cbdcd8027db98c6b99c8 Mon Sep 17 00:00:00 2001 From: Kenneth Loeffler Date: Thu, 24 Aug 2023 16:32:40 -0700 Subject: [PATCH] Prefix enums in errors with Enum. Co-authored-by: Filip Tibell --- src/roblox/instance/terrain.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roblox/instance/terrain.rs b/src/roblox/instance/terrain.rs index ed14c59..2c52acf 100644 --- a/src/roblox/instance/terrain.rs +++ b/src/roblox/instance/terrain.rs @@ -74,7 +74,7 @@ fn terrain_get_material_color(_: &Lua, this: &Instance, material: EnumItem) -> L if &material.parent.desc.name != "Material" { return Err(LuaError::RuntimeError(format!( - "Expected Material, got {}", + "Expected Enum.Material, got Enum.{}", &material.parent.desc.name ))); } @@ -107,7 +107,7 @@ fn terrain_set_material_color( if &material.parent.desc.name != "Material" { return Err(LuaError::RuntimeError(format!( - "Expected Material, got {}", + "Expected Enum.Material, got Enum.{}", &material.parent.desc.name ))); }