From e89a3ee04bf8ce384e697c07009298a916ef49cc Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 9 Sep 2017 10:53:57 -0400 Subject: [PATCH] code comment Signed-off-by: Kenneth Reitz --- pipenv/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pipenv/cli.py b/pipenv/cli.py index 22678888..a0e02293 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -366,9 +366,12 @@ def do_install_dependencies( if c.return_code != 0: click.echo(crayons.red('An error occured while installing!')) + # We echo both c.out and c.err because pip returns error details on out. click.echo(crayons.blue(format_pip_output(c.out))) click.echo(crayons.blue(format_pip_error(c.err))) + + # Return the subprocess' return code. sys.exit(c.return_code)