about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2018-07-10 08:41:57 +0200
committerPaweł Jastrzębski <pawelj@iosphe.re>2018-07-10 08:42:15 +0200
commit93e6b514661bb9ac845740c81e07e5967252fd7b (patch)
tree0d03f8dcf5ec0a55cf4b81ab1b0f4be4812ba2ea
parentLet 7-Zip handle all archive operations (diff)
downloadkcc-93e6b514661bb9ac845740c81e07e5967252fd7b.tar.gz
kcc-93e6b514661bb9ac845740c81e07e5967252fd7b.tar.bz2
kcc-93e6b514661bb9ac845740c81e07e5967252fd7b.zip
Expanded output of corruption error (close #272)
-rwxr-xr-xkindlecomicconverter/comic2ebook.py2
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: