diff options
author | Paweł Jastrzębski <pawelj@iosphe.re> | 2018-07-10 08:41:57 +0200 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@iosphe.re> | 2018-07-10 08:42:15 +0200 |
commit | 93e6b514661bb9ac845740c81e07e5967252fd7b (patch) | |
tree | 0d03f8dcf5ec0a55cf4b81ab1b0f4be4812ba2ea | |
parent | Let 7-Zip handle all archive operations (diff) | |
download | kcc-93e6b514661bb9ac845740c81e07e5967252fd7b.tar.gz kcc-93e6b514661bb9ac845740c81e07e5967252fd7b.tar.bz2 kcc-93e6b514661bb9ac845740c81e07e5967252fd7b.zip |
Expanded output of corruption error (close #272)
-rwxr-xr-x | kindlecomicconverter/comic2ebook.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 37e39d7..5cabb1f 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -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: |