From bcb20c995bff737bc6d1a26cde3de32e5bbcb69c Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Thu, 26 Jan 2017 12:57:28 -0700 Subject: [PATCH] update error message for missing SHELL variable --- pipenv/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 40f75ac8..73b0a817 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -690,7 +690,9 @@ def shell(three=None): try: shell = os.environ['SHELL'] except KeyError: - click.echo(crayons.red('Windows is not currently supported.')) + error = ('No shell found: Please ensure the SHELL environment variable is set. ' + 'Windows is not currently supported.') + click.echo(crayons.red(error)) sys.exit(1) click.echo(crayons.yellow('Spawning environment shell ({0}).'.format(crayons.red(shell))))