Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

Commit

Permalink
Improve error message when Firefox binary path is misconfigured.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kelly committed Jul 24, 2018
1 parent 6519787 commit 5e80640
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
help='Path to Firefox binary',
)
def main(firefox_bin):
if not firefox_bin:
raise click.BadParameter(
'No Firefox binary found; configure the path to Firefox with `npm config`.'
)
elif not os.path.exists(firefox_bin):
raise click.BadParameter('Path to Firefox binary does not exist.')

click.echo('== Building test bundle with Webpack')
bundle_handle, bundle_path = mkstemp()
try:
Expand Down

0 comments on commit 5e80640

Please sign in to comment.