Error message improvement: sphinx_rtd_theme not found error

This commit is contained in:
ryaanwells 2016-04-25 15:28:38 +01:00
parent e48335097c
commit 7038e53d5d

View File

@ -103,7 +103,8 @@ class Theme(object):
if name not in self.themes:
if name == 'sphinx_rtd_theme':
raise ThemeError('sphinx_rtd_theme is no longer a hard dependency '
'since version 1.4.0. Please install it manually.')
'since version 1.4.0. Please install it manually.'
'(pip install sphinx_rtd_theme)')
else:
raise ThemeError('no theme named %r found '
'(missing theme.conf?)' % name)