diff options
| author | Georg Brandl <georg@python.org> | 2014-01-19 19:13:17 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2014-01-19 19:13:17 +0100 |
| commit | cd7658dde7f32714f4e6013cd221a9ea6e88bb82 (patch) | |
| tree | 329d1f0abf16c75666013bc877f7532a21663398 /sphinx/cmdline.py | |
| parent | 2a8cf7c7781a4554adbcb4bae6bec2a40bfc156d (diff) | |
| parent | 468198f91b0a41056c46c25f8cedf5c528c97564 (diff) | |
| download | sphinx-cd7658dde7f32714f4e6013cd221a9ea6e88bb82.tar.gz | |
merge with stable
Diffstat (limited to 'sphinx/cmdline.py')
| -rw-r--r-- | sphinx/cmdline.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sphinx/cmdline.py b/sphinx/cmdline.py index fdb47dec..97f9718b 100644 --- a/sphinx/cmdline.py +++ b/sphinx/cmdline.py @@ -270,6 +270,13 @@ def main(argv): elif isinstance(err, SphinxError): print >>error, red('%s:' % err.category) print >>error, terminal_safe(unicode(err)) + elif isinstance(err, UnicodeError): + print >>error, red('Encoding error:') + print >>error, terminal_safe(unicode(err)) + tbpath = save_traceback(app) + print >>error, red('The full traceback has been saved ' + 'in %s, if you want to report the ' + 'issue to the developers.' % tbpath) else: print >>error, red('Exception occurred:') print >>error, format_exception_cut_frames().rstrip() |
