Display `Muliname` when trying to lookup a non-public property
This will make these errors easier to debug.
This commit is contained in:
parent
4a534086b8
commit
8d58c6974c
|
@ -138,7 +138,9 @@ impl<'gc> ScriptObjectData<'gc> {
|
|||
activation: &mut Activation<'_, 'gc, '_>,
|
||||
) -> Result<Value<'gc>, Error> {
|
||||
if !multiname.contains_public_namespace() {
|
||||
return Err("Non-public property not found on Object".into());
|
||||
return Err(
|
||||
format!("Non-public property `{:?}` not found on Object", multiname).into(),
|
||||
);
|
||||
}
|
||||
|
||||
let local_name = match multiname.local_name() {
|
||||
|
|
Loading…
Reference in New Issue