mirror of
https://github.com/l1ving/youtube-dl
synced 2024-12-21 16:55:36 +08:00
[swfinterp] Better error message
This commit is contained in:
parent
4baafa229d
commit
0ab1ca5501
@ -564,7 +564,7 @@ class SWFInterpreter(object):
|
|||||||
elif isinstance(pname, compat_str): # Member access
|
elif isinstance(pname, compat_str): # Member access
|
||||||
obj = stack.pop()
|
obj = stack.pop()
|
||||||
assert isinstance(obj, (dict, _ScopeDict)), \
|
assert isinstance(obj, (dict, _ScopeDict)), \
|
||||||
'Accessing member on %r' % obj
|
'Accessing member %r on %r' % (pname, obj)
|
||||||
stack.append(obj[pname])
|
stack.append(obj[pname])
|
||||||
else: # Assume attribute access
|
else: # Assume attribute access
|
||||||
idx = stack.pop()
|
idx = stack.pop()
|
||||||
|
Loading…
Reference in New Issue
Block a user