summaryrefslogtreecommitdiff
path: root/pycco/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'pycco/main.py')
-rw-r--r--pycco/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pycco/main.py b/pycco/main.py
index f0d4fcf..492058b 100644
--- a/pycco/main.py
+++ b/pycco/main.py
@@ -521,9 +521,9 @@ def process(sources, preserve_paths=True, outdir=None, language=None,
print("pycco: {} -> {}".format(s, dest))
generated_files.append(dest)
- except UnicodeDecodeError:
+ except (ValueError, UnicodeDecodeError) as e:
if skip:
- print("pycco [FAILURE]: {}".format(s))
+ print("pycco [FAILURE]: {}, {}".format(s, e))
else:
raise