From 72b5b520a1d59947f1a5435a620b20e2ece2b252 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 30 Jan 2017 12:55:58 -0500 Subject: [PATCH] Auto-committing 'cli.py' --- pipenv/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index e6e7e7c0..76fa57e5 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -871,6 +871,7 @@ def check(): # Load the pipfile. p = pipfile.Pipfile.load(project.pipfile_location) + failed = False # Assert each specified requirement. for marker, specifier in p.data['_meta']['requires'].items(): @@ -879,7 +880,9 @@ def check(): assert results[marker] == specifier except AssertionError: click.echo('Specifier {0} does not match {1}.'.format(crayons.red(marker), crayons.blue(specifier))) - sys.exit(1) + if failed: + click.echo(crayons.red('Failed!')) + sys.exit(1) click.echo(crayons.green('Passed!'))