avm2: Fix "Property does not exist" error message

The `multiname` is now a `Gc`, so we need to dereference it
to get a useful Debug impl.
This commit is contained in:
Aaron Hill 2022-09-11 11:03:50 -05:00
parent 81a5f3f10a
commit fbcefc49dc
1 changed files with 2 additions and 2 deletions

View File

@ -1682,7 +1682,7 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> {
avm_debug!(self.context.avm2, "Resolving {:?}", multiname);
let found: Result<Object<'gc>, Error> = self
.find_definition(&multiname)?
.ok_or_else(|| format!("Property does not exist: {:?}", multiname).into());
.ok_or_else(|| format!("Property does not exist: {:?}", *multiname).into());
let result: Value<'gc> = found?.into();
self.context.avm2.push(result);
@ -1699,7 +1699,7 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> {
avm_debug!(self.avm2(), "Resolving {:?}", multiname);
let found: Result<Value<'gc>, Error> = self
.resolve_definition(&multiname)?
.ok_or_else(|| format!("Property does not exist: {:?}", multiname).into());
.ok_or_else(|| format!("Property does not exist: {:?}", *multiname).into());
self.context.avm2.push(found?);