Merge pull request #106 from nateprewitt/update_shell_err_msg

update error message for missing SHELL variable
This commit is contained in:
Nate Prewitt
2017-01-26 13:11:28 -07:00
committed by GitHub
+3 -1
View File
@@ -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))))