mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-08-17 15:59:37 +02:00
[swfinterp] Better error message
This commit is contained in:
parent
4baafa229d
commit
0ab1ca5501
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -564,7 +564,7 @@ class SWFInterpreter(object):
|
||||
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 New Issue
Block a user