mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[swfinterp] Better error message
This commit is contained in:
parent
4baafa229d
commit
0ab1ca5501
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue