Bug 1591118. Make 'mach doc' provide a clearer error message when jsdoc is missing. r=ahal

Differential Revision: https://phabricator.services.mozilla.com/D50485

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jonathan Watt 2019-10-24 21:38:28 +00:00
parent d973ff4e31
commit e4ec992ba0

View File

@ -60,7 +60,14 @@ class Documentation(MachCommandBase):
from mozfile import which
if not which('jsdoc'):
return die('jsdoc not found - please install from npm.')
return die("""\
JSDoc is required to build the docs but was not found on your system. Please \
install it globally by running:
$ npm install -g jsdoc
Bug 1498604 tracks bootstrapping jsdoc properly.
""")
self.activate_pipenv(os.path.join(here, 'Pipfile'))