summaryrefslogtreecommitdiff
path: root/sphinx/builder.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-12-15 19:59:23 +0100
committerGeorg Brandl <georg@python.org>2008-12-15 19:59:23 +0100
commit04f02b34d076c88050d77a117192b2777bd93000 (patch)
treedb52f5c939d86454a7f3d0eaef5ed22cbb650eff /sphinx/builder.py
parent1d8f1f1520946ad8a93f7730e950c3a07e7bad82 (diff)
downloadsphinx-git-04f02b34d076c88050d77a117192b2777bd93000.tar.gz
Fix #67: Output warnings about failed doctests in the doctest extension
even when running in quiet mode.
Diffstat (limited to 'sphinx/builder.py')
-rw-r--r--sphinx/builder.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sphinx/builder.py b/sphinx/builder.py
index 1d16c8eff..81fc24862 100644
--- a/sphinx/builder.py
+++ b/sphinx/builder.py
@@ -291,12 +291,13 @@ class Builder(object):
# finish (write static files etc.)
self.finish()
+ status = self.app.statuscode == 0 and 'succeeded' or 'finished with problems'
if self.app._warncount:
- self.info(bold('build succeeded, %s warning%s.' %
- (self.app._warncount,
+ self.info(bold('build %s, %s warning%s.' %
+ (status, self.app._warncount,
self.app._warncount != 1 and 's' or '')))
else:
- self.info(bold('build succeeded.'))
+ self.info(bold('build %s.' % status))
def write(self, build_docnames, updated_docnames, method='update'):
if build_docnames is None or build_docnames == ['__all__']: