Skip to content

Commit

Permalink
Expanded output of corruption error (close #272)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Jul 10, 2018
1 parent 7904662 commit 93e6b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kindlecomicconverter/comic2ebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ def detectCorruption(tmppath, orgpath):
if 'decoder' in str(err) and 'not available' in str(err):
raise RuntimeError('Pillow was compiled without JPG and/or PNG decoder.')
else:
raise RuntimeError('Image file %s is corrupted.' % pathOrg)
raise RuntimeError('Image file %s is corrupted. Error: %s' % (pathOrg, str(err)))
else:
os.remove(os.path.join(root, name))
if alreadyProcessed:
Expand Down

0 comments on commit 93e6b51

Please sign in to comment.