Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Show value in PackError to help debug #1
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasRosenstein authored Dec 20, 2019
1 parent 42843e5 commit 2566d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions movutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def pack_into_stream(self, struct_type, fp, value):
try:
fp.write(self.fmt.pack(*value))
except struct.error as e:
raise PackError('field {}.{}: {}'.format(
struct_type.__name__, self.name, e))
raise PackError('field {}.{} (value: {!r}): {}'.format(
struct_type.__name__, self.name, value, e))


class ListField(Field):
Expand Down

0 comments on commit 2566d06

Please sign in to comment.