mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #6270 from larsoner/explain
ENH: Explain warnings-as-errors
This commit is contained in:
commit
63b30b1779
@ -348,9 +348,16 @@ class Sphinx:
|
|||||||
status = (self.statuscode == 0 and
|
status = (self.statuscode == 0 and
|
||||||
__('succeeded') or __('finished with problems'))
|
__('succeeded') or __('finished with problems'))
|
||||||
if self._warncount:
|
if self._warncount:
|
||||||
logger.info(bold(__('build %s, %s warning.',
|
if self.warningiserror:
|
||||||
'build %s, %s warnings.', self._warncount) %
|
msg = __('build %s, %s warning (with warnings treated as errors).',
|
||||||
(status, self._warncount)))
|
'build %s, %s warnings (with warnings treated as errors).',
|
||||||
|
self._warncount)
|
||||||
|
else:
|
||||||
|
msg = __('build %s, %s warning.',
|
||||||
|
'build %s, %s warnings.',
|
||||||
|
self._warncount)
|
||||||
|
|
||||||
|
logger.info(bold(msg % (status, self._warncount)))
|
||||||
else:
|
else:
|
||||||
logger.info(bold(__('build %s.') % status))
|
logger.info(bold(__('build %s.') % status))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user