Skip to content

Commit

Permalink
Reword error message in wheel and wininst read
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshks committed Apr 21, 2020
1 parent 2c01611 commit 6f17a65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion twine/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def read_file(name):
return archive.read(name)

else:
raise exceptions.InvalidDistribution("Not a known archive format: %s" % fqn)
raise exceptions.InvalidDistribution(
"Not a known archive format for file: %s" % fqn
)

try:
for path in self.find_candidate_metadata_files(names):
Expand Down
4 changes: 3 additions & 1 deletion twine/wininst.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def read_file(name):
return archive.read(name)

else:
raise exceptions.InvalidDistribution("Not a known archive format: %s" % fqn)
raise exceptions.InvalidDistribution(
"Not a known archive format for file: %s" % fqn
)

try:
tuples = [
Expand Down

0 comments on commit 6f17a65

Please sign in to comment.