avm2: Print full multiname for "Property does not exist" errors (#2740)

This makes it easy to see when the error is a result of something in the
"flash" package being unimplemented.
This commit is contained in:
Aaron Hill 2021-01-21 20:52:17 -05:00 committed by GitHub
parent b05c6540e1
commit b2f5f807de
1 changed files with 2 additions and 2 deletions

View File

@ -1279,7 +1279,7 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> {
} else {
None
}
.ok_or_else(|| format!("Property does not exist: {:?}", multiname.local_name()).into());
.ok_or_else(|| format!("Property does not exist: {:?}", multiname).into());
let result: Value<'gc> = found?.into();
self.context.avm2.push(result);
@ -1301,7 +1301,7 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> {
} else {
None
}
.ok_or_else(|| format!("Property does not exist: {:?}", multiname.local_name()).into());
.ok_or_else(|| format!("Property does not exist: {:?}", multiname).into());
let result: Value<'gc> = found?;
self.context.avm2.push(result);