Better exception message
This commit is contained in:
parent
63c7e4fcef
commit
968068d21d
@ -240,7 +240,8 @@ class Struct:
|
|||||||
simple_reader = simple_readers[dna_type.dna_type_id]
|
simple_reader = simple_readers[dna_type.dna_type_id]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise exceptions.NoReaderImplemented(
|
raise exceptions.NoReaderImplemented(
|
||||||
"%r exists but isn't pointer, can't resolve field %r" % (path, dna_name.name_only),
|
"%r exists but not simple type (%r), can't resolve field %r" %
|
||||||
|
(path, dna_type.dna_type_id.decode(), dna_name.name_only),
|
||||||
dna_name, dna_type) from None
|
dna_name, dna_type) from None
|
||||||
|
|
||||||
if isinstance(path, tuple) and len(path) > 1 and isinstance(path[-1], int):
|
if isinstance(path, tuple) and len(path) > 1 and isinstance(path[-1], int):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user