diff --git a/test/swftests/DictCall.as b/test/swftests/DictCall.as index 236efd8482..c2d174cc2e 100644 --- a/test/swftests/DictCall.as +++ b/test/swftests/DictCall.as @@ -4,7 +4,7 @@ package { public class DictCall { public static function main(d:Object):int{ - return d.x + d.y; + return d.x + d.y; } } } diff --git a/youtube_dl/swfinterp.py b/youtube_dl/swfinterp.py index 7c0ee1e61a..58da6c586f 100644 --- a/youtube_dl/swfinterp.py +++ b/youtube_dl/swfinterp.py @@ -564,7 +564,7 @@ def resfunc(args): elif isinstance(pname, compat_str): # Member access obj = stack.pop() assert isinstance(obj, (dict, _ScopeDict)), \ - 'Accessing member on %r' % obj + 'Accessing member %r on %r' % (pname, obj) stack.append(obj[pname]) else: # Assume attribute access idx = stack.pop()