mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
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:
parent
d973ff4e31
commit
e4ec992ba0
@ -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'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user