mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #106 from nateprewitt/update_shell_err_msg
update error message for missing SHELL variable
This commit is contained in:
+3
-1
@@ -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))))
|
||||
|
||||
Reference in New Issue
Block a user